2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. Use of this
3 * source code is governed by a BSD-style license that can be found in the
6 <script src="common.js"></script>
9 var themeId = 'iamefpfkojoapidjnbafmgkgncegbkad';
12 function installTheme() {
13 listenOnce(chrome.management.onInstalled, function(info) {
14 assertEq(info.id, themeId);
17 var manifest = getManifest("../../theme/manifest.json");
18 chrome.webstorePrivate.beginInstallWithManifest3(
19 {id: themeId, manifest: manifest},
20 callbackPass(function(result) {
22 chrome.webstorePrivate.completeInstall(themeId, callbackPass());