Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Side by Side Diff: chrome/test/data/extensions/api_test/webstore_private/theme.html

Issue 10010038: Do not show the install prompt for themes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!--
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
4 * LICENSE file.
5 -->
6 <script src="common.js"></script>
7 <script>
8
9 var themeId = 'iamefpfkojoapidjnbafmgkgncegbkad';
10
11 runTests([
12 function installTheme() {
13 listenOnce(chrome.management.onInstalled, function(info) {
14 assertEq(info.id, themeId);
15 });
16
17 var manifest = getManifest("../../theme/manifest.json");
18 chrome.webstorePrivate.beginInstallWithManifest3(
19 {id: themeId, manifest: manifest},
20 callbackPass(function(result) {
21 assertEq("", result);
22 chrome.webstorePrivate.completeInstall(themeId, callbackPass());
23 }));
24 }
25 ]);
26
27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698