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

Unified Diff: chrome/browser/extensions/extension_disabled_ui.cc

Issue 9960087: Revert 13676 - Revert 131665 - Add a preference for why an extension is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/browser/extensions/extension_disabled_ui.cc
diff --git a/chrome/browser/extensions/extension_disabled_ui.cc b/chrome/browser/extensions/extension_disabled_ui.cc
index ed8c203dd11c8883f5bdef9c5edd082c580be2d7..1d7d59ffa0db8eb97fa991961fc3906ef6a7e9a9 100644
--- a/chrome/browser/extensions/extension_disabled_ui.cc
+++ b/chrome/browser/extensions/extension_disabled_ui.cc
@@ -188,6 +188,7 @@ ExtensionDisabledGlobalError::ExtensionDisabledGlobalError(
}
ExtensionDisabledGlobalError::~ExtensionDisabledGlobalError() {
+ ReleaseMenuCommandID(menu_command_id_);
HISTOGRAM_ENUMERATION("Extensions.DisabledUIUserResponse",
user_response_, EXTENSION_DISABLED_UI_BUCKET_BOUNDARY);
}
@@ -283,7 +284,6 @@ void ExtensionDisabledGlobalError::Observe(
if (extension == extension_) {
GlobalErrorServiceFactory::GetForProfile(service_->profile())->
RemoveGlobalError(this);
- ReleaseMenuCommandID(menu_command_id_);
if (type == chrome::NOTIFICATION_EXTENSION_LOADED)
user_response_ = REENABLE;

Powered by Google App Engine
This is Rietveld 408576698