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

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 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 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..7aa92fd2dc4207020c593926d726c7c11d3b58e1 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(callbackPass(function() {
+ chrome.management.uninstall(extensionId, {}, callbackPass());
+ }));
}));
}));
}

Powered by Google App Engine
This is Rietveld 408576698