Index: chrome/test/data/extensions/management/uninstall_extension/background.js |
diff --git a/chrome/test/data/extensions/management/uninstall_extension/background.js b/chrome/test/data/extensions/management/uninstall_extension/background.js |
index 5ea92dd57847f9f8192ddc5234cc423fd54db20e..f105df0913eb20f2c0199743fdc30a3f50a9432b 100644 |
--- a/chrome/test/data/extensions/management/uninstall_extension/background.js |
+++ b/chrome/test/data/extensions/management/uninstall_extension/background.js |
@@ -11,11 +11,13 @@ chrome.management.getAll(function(items) { |
if (item.name != EXPECTED_NAME) continue; |
var id = item.id; |
chrome.test.assertEq(false, item.mayDisable); |
- chrome.management.uninstall(id, function() { |
- // Check that the right error occured. |
- var expectedError = 'Extension ' + id + ' cannot be modified by user'; |
- chrome.test.assertEq(expectedError, chrome.runtime.lastError.message); |
- chrome.test.sendMessage('ready'); |
+ chrome.test.runWithUserGesture(function() { |
+ chrome.management.uninstall(id, function() { |
+ // Check that the right error occured. |
+ var expectedError = 'Extension ' + id + ' cannot be modified by user.'; |
+ chrome.test.assertEq(expectedError, chrome.runtime.lastError.message); |
+ chrome.test.sendMessage('ready'); |
+ }); |
}); |
} |
}); |