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

Unified Diff: chrome/test/data/extensions/api_test/extension_gallery_install/common.js

Issue 4727001: Split the private webstore install API into two parts.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/extension_gallery_install/common.js
===================================================================
--- chrome/test/data/extensions/api_test/extension_gallery_install/common.js (revision 0)
+++ chrome/test/data/extensions/api_test/extension_gallery_install/common.js (revision 0)
@@ -0,0 +1,21 @@
+// Copyright (c) 2010 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.
+
+var extension_id = "ldnnhddmnhbkjipkidpdiheffobcpfmf";
+
+var assertEq = chrome.test.assertEq;
+var assertNoLastError = chrome.test.assertNoLastError;
+var succeed = chrome.test.succeed;
+
+function checkInstalled(callback) {
+ chrome.management.getAll(function(extensions) {
+ var found = false;
+ extensions.forEach(function(extension) {
Erik does not do reviews 2010/11/10 16:47:45 you can use one of the more recent built-in array
asargent_no_longer_on_chrome 2010/11/10 22:58:23 nice - I hadn't heard of that one before. done.
+ if (extension_id == extension.id)
+ found = true;
+ });
+
+ callback(found);
+ });
+}
Property changes on: chrome/test/data/extensions/api_test/extension_gallery_install/common.js
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698