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

Unified Diff: chrome/test/data/extensions/api_test/management/management_policy/allowed.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/management/management_policy/allowed.js
diff --git a/chrome/test/data/extensions/api_test/management/management_policy/allowed.js b/chrome/test/data/extensions/api_test/management/management_policy/allowed.js
index 440a3c8bcffba2cabddccd5e770446216dc37179..cdd816882a1a1287ccaed63e96fd4569dd847480 100644
--- a/chrome/test/data/extensions/api_test/management/management_policy/allowed.js
+++ b/chrome/test/data/extensions/api_test/management/management_policy/allowed.js
@@ -64,10 +64,12 @@ var tests = [
chrome.test.assertEq(true, item.mayDisable);
var id = item.id;
- chrome.management.uninstall(id, callback(function() {
- chrome.test.assertNoLastError();
- // The calling api test will verify that the item was uninstalled.
- }));
+ chrome.test.runWithUserGesture(function() {
+ chrome.management.uninstall(id, callback(function() {
+ chrome.test.assertNoLastError();
+ // The calling api test will verify that the item was uninstalled.
+ }));
+ });
}));
}
];

Powered by Google App Engine
This is Rietveld 408576698