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

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

Issue 4837003: Merge 65722 - Split the private webstore install API into two parts.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/552/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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var extension_id = "ldnnhddmnhbkjipkidpdiheffobcpfmf"; 5 var extension_id = "ldnnhddmnhbkjipkidpdiheffobcpfmf";
6 6
7 var assertEq = chrome.test.assertEq; 7 var assertEq = chrome.test.assertEq;
8 var assertNoLastError = chrome.test.assertNoLastError; 8 var assertNoLastError = chrome.test.assertNoLastError;
9 var succeed = chrome.test.succeed; 9 var succeed = chrome.test.succeed;
10 10
11 // Calls |callback| with true/false indicating whether an item with an id of 11 // Calls |callback| with true/false indicating whether an item with an id of
12 // extension_id is installed. 12 // extension_id is installed.
13 function checkInstalled(callback) { 13 function checkInstalled(callback) {
14 chrome.management.getAll(function(extensions) { 14 chrome.management.getAll(function(extensions) {
15 var found = false; 15 var found = false;
16 callback(extensions.some(function(ext) { 16 callback(extensions.some(function(ext) {
17 return ext.id == extension_id; 17 return ext.id == extension_id;
18 })); 18 }));
19 }); 19 });
20 } 20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698