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

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

Issue 9694038: OBSOLETE REVIEW. See http://codereview.chromium.org/10382149/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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_context_menu_model.cc
===================================================================
--- chrome/browser/extensions/extension_context_menu_model.cc (revision 136836)
+++ chrome/browser/extensions/extension_context_menu_model.cc (working copy)
@@ -24,15 +24,6 @@
using content::Referrer;
using content::WebContents;
-enum MenuEntries {
- NAME = 0,
- CONFIGURE,
- HIDE,
- DISABLE,
- UNINSTALL,
- MANAGE
-};
-
ExtensionContextMenuModel::ExtensionContextMenuModel(
const Extension* extension,
Browser* browser)
@@ -64,7 +55,8 @@
return extension->GetHomepageURL().is_valid();
} else if (command_id == DISABLE || command_id == UNINSTALL) {
// Some extension types can not be disabled or uninstalled.
- return Extension::UserMayDisable(extension->location());
+ return profile_->GetExtensionService()->extension_management_policy()->
+ UserMayModifyStatus(extension, NULL);
}
return true;
}

Powered by Google App Engine
This is Rietveld 408576698