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

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

Issue 648113002: Removing extensions::FeatureSwitch which is no longer used (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
diff --git a/chrome/browser/extensions/extension_context_menu_model.cc b/chrome/browser/extensions/extension_context_menu_model.cc
index 9ccabe94bef5f0b48b8bfaff8f453ac83cf7dacb..6ce8f165c8fdfeb9c68a48a57c61f9285158afc3 100644
--- a/chrome/browser/extensions/extension_context_menu_model.cc
+++ b/chrome/browser/extensions/extension_context_menu_model.cc
@@ -75,14 +75,13 @@ bool MenuItemMatchesAction(ExtensionContextMenuModel::ActionType type,
int GetVisibilityStringId(Profile* profile, const Extension* extension) {
DCHECK(profile);
int string_id = -1;
- if (!extensions::FeatureSwitch::extension_action_redesign()->IsEnabled()) {
// Without the toolbar redesign, we only show the visibility toggle for
// browser actions, and only give the option to hide.
if (extensions::ExtensionActionManager::Get(profile)->GetBrowserAction(
*extension)) {
string_id = IDS_EXTENSIONS_HIDE_BUTTON;
}
- } else {
+ else {
// With the redesign, we display "show" or "hide" based on the icon's
// visibility.
bool visible = ExtensionActionAPI::GetBrowserActionVisibility(
« no previous file with comments | « chrome/browser/extensions/extension_browsertest.h ('k') | chrome/browser/extensions/extension_install_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698