summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_disabled_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_disabled_ui.cc')
-rw-r--r--chrome/browser/extensions/extension_disabled_ui.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_disabled_ui.cc b/chrome/browser/extensions/extension_disabled_ui.cc
index b66804f..de7f221 100644
--- a/chrome/browser/extensions/extension_disabled_ui.cc
+++ b/chrome/browser/extensions/extension_disabled_ui.cc
@@ -400,6 +400,9 @@ void ExtensionDisabledGlobalError::Observe(
GlobalErrorServiceFactory::GetForProfile(service_->profile())->
RemoveGlobalError(this);
+ // Make sure we don't call RemoveGlobalError again.
+ registrar_.RemoveAll();
+
if (type == extensions::NOTIFICATION_EXTENSION_LOADED_DEPRECATED)
user_response_ = REENABLE;
else if (type == extensions::NOTIFICATION_EXTENSION_REMOVED)