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

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

Issue 137793011: Require user confirmation for chrome.management.uninstall except when uninstalling self. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ExtensionManagementApiBrowserTest.LaunchApp Created 6 years, 11 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // The id of an extension we're using for install tests. 5 // The id of an extension we're using for install tests.
6 var extensionId = "enfkhcelefdadlmkffamgdlgplcionje"; 6 var extensionId = "enfkhcelefdadlmkffamgdlgplcionje";
7 7
8 // The id of an app we're using for install tests. 8 // The id of an app we're using for install tests.
9 var appId = "iladmdjkfniedhfhcfoefgojhgaiaccc"; 9 var appId = "iladmdjkfniedhfhcfoefgojhgaiaccc";
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // Now complete the installation. 84 // Now complete the installation.
85 chrome.webstorePrivate.completeInstall( 85 chrome.webstorePrivate.completeInstall(
86 extensionId, 86 extensionId,
87 callbackPass(function(result) { 87 callbackPass(function(result) {
88 assertNoLastError(); 88 assertNoLastError();
89 assertEq(undefined, result); 89 assertEq(undefined, result);
90 90
91 whileInstalled(); 91 whileInstalled();
92 92
93 chrome.management.uninstall(extensionId, {}, callbackPass()); 93 chrome.test.runWithUserGesture(callbackPass(function() {
94 chrome.management.uninstall(extensionId, {}, callbackPass());
95 }));
94 })); 96 }));
95 })); 97 }));
96 } 98 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698