| Index: chrome/test/data/extensions/management/themes/uninstall.js
|
| ===================================================================
|
| --- chrome/test/data/extensions/management/themes/uninstall.js (revision 0)
|
| +++ chrome/test/data/extensions/management/themes/uninstall.js (revision 0)
|
| @@ -0,0 +1,23 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +chrome.management.getAll(function(items) {
|
| + var theme = null;
|
| + for (var i = 0; i < items.length; i++) {
|
| + var item = items[i];
|
| + if (item.isTheme && item.enabled) {
|
| + if (theme) {
|
| + console.log("more than 1 enabled theme!");
|
| + return;
|
| + }
|
| + theme = item;
|
| + }
|
| + }
|
| + if (theme) {
|
| + chrome.management.uninstall(theme.id, function() {
|
| + chrome.test.sendMessage("ready");
|
| + });
|
| + }
|
| +});
|
| +
|
|
|
| Property changes on: chrome/test/data/extensions/management/themes/uninstall.js
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|