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

Unified 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 ExtensionWebstorePrivateApiTest.* and ExtensionManagementTest.ExternalPolicyRefresh 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/webstore_private/common.js
diff --git a/chrome/test/data/extensions/api_test/webstore_private/common.js b/chrome/test/data/extensions/api_test/webstore_private/common.js
index 1021877fc0b07b00dca55cc80524ef1d4da4e2f3..cf1ed3d6ca11c3f39eeed11f975bf82fa820ede6 100644
--- a/chrome/test/data/extensions/api_test/webstore_private/common.js
+++ b/chrome/test/data/extensions/api_test/webstore_private/common.js
@@ -90,7 +90,9 @@ function installAndCleanUp(installOptions, whileInstalled) {
whileInstalled();
- chrome.management.uninstall(extensionId, {}, callbackPass());
+ chrome.test.runWithUserGesture(function() {
not at google - send to devlin 2014/01/16 05:07:39 also need a callbackPass around this one
meacer 2014/01/16 18:59:40 Done.
+ chrome.management.uninstall(extensionId, {}, callbackPass());
+ });
}));
}));
}

Powered by Google App Engine
This is Rietveld 408576698