diff options
author | dennisjeffrey@google.com <dennisjeffrey@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-07 18:18:33 +0000 |
---|---|---|
committer | dennisjeffrey@google.com <dennisjeffrey@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-07 18:18:33 +0000 |
commit | d6ebc979be84b86e0736e3463a89c7cf6ae4a1cd (patch) | |
tree | 7332b67ff4ce897c56e564f464f4de78b40b7913 /chrome/browser/automation/automation_provider.cc | |
parent | 75895ca88b16d4d80f5cdbb3132bbe9682601aa7 (diff) | |
download | chromium_src-d6ebc979be84b86e0736e3463a89c7cf6ae4a1cd.zip chromium_src-d6ebc979be84b86e0736e3463a89c7cf6ae4a1cd.tar.gz chromium_src-d6ebc979be84b86e0736e3463a89c7cf6ae4a1cd.tar.bz2 |
New notification sent when extension uninstall is not allowed.
In the event that an extension uninstall is skipped (not allowed)
because that extension is not user-manageable, a new notification is
sent. The automation hook UninstallExtensionById is revised to handle
this case, and a new PyAuto test is written to exercise this new
functionality (the test attempts to uninstall the WebStore and verifies that
this extension cannot be uninstalled).
BUG=76598
TEST=None.
Review URL: http://codereview.chromium.org/6794040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80814 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_provider.cc')
-rw-r--r-- | chrome/browser/automation/automation_provider.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc index 06842ac..59e3134 100644 --- a/chrome/browser/automation/automation_provider.cc +++ b/chrome/browser/automation/automation_provider.cc @@ -820,7 +820,7 @@ void AutomationProvider::UninstallExtension(int extension_handle, ExtensionService* service = profile_->GetExtensionService(); if (extension && service) { ExtensionUnloadNotificationObserver observer; - service->UninstallExtension(extension->id(), false); + service->UninstallExtension(extension->id(), false, NULL); // The extension unload notification should have been sent synchronously // with the uninstall. Just to be safe, check that it was received. *success = observer.did_receive_unload_notification(); |