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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 var extension_id = "ldnnhddmnhbkjipkidpdiheffobcpfmf";
6
7 var assertEq = chrome.test.assertEq;
8 var assertNoLastError = chrome.test.assertNoLastError;
9 var succeed = chrome.test.succeed;
10
11 // Calls |callback| with true/false indicating whether an item with an id of
12 // extension_id is installed.
13 function checkInstalled(callback) {
14 chrome.management.getAll(function(extensions) {
15 var found = false;
16 callback(extensions.some(function(ext) {
17 return ext.id == extension_id;
18 }));
19 });
20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698