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

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

Issue 10827268: Added flag --extensions-in-action-box to split Action Box and Extensions in it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed IsActionBoxEnabled() Created 8 years, 4 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_toolbar_model.cc
diff --git a/chrome/browser/extensions/extension_toolbar_model.cc b/chrome/browser/extensions/extension_toolbar_model.cc
index a110192f24a030ef77838f16795fe50c3d3bd055..cc72665dc1cbaba95364f16c1c0ea22f75af55f9 100644
--- a/chrome/browser/extensions/extension_toolbar_model.cc
+++ b/chrome/browser/extensions/extension_toolbar_model.cc
@@ -167,7 +167,7 @@ void ExtensionToolbarModel::Observe(
// hides the browser action and then disables and enables the extension.
if (list_with_extension)
return;
- if (extensions::switch_utils::IsActionBoxEnabled())
+ if (extensions::switch_utils::IsExtensionsInActionBoxEnabled())
AddExtension(extension, &action_box_menu_items_);
else if (service_->extension_prefs()->GetBrowserActionVisibility(extension))
AddExtension(extension, &toolbar_items_);
@@ -176,7 +176,7 @@ void ExtensionToolbarModel::Observe(
RemoveExtension(extension, list_with_extension);
} else if (type ==
chrome::NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED) {
- if (extensions::switch_utils::IsActionBoxEnabled()) {
+ if (extensions::switch_utils::IsExtensionsInActionBoxEnabled()) {
// TODO(yefim): Implement this when implementing drag & drop
// for action box menu.
} else if (
@@ -250,7 +250,7 @@ extensions::ExtensionList* ExtensionToolbarModel::FindListWithExtension(
void ExtensionToolbarModel::InitializeExtensionLists() {
DCHECK(service_->is_ready());
- if (extensions::switch_utils::IsActionBoxEnabled())
+ if (extensions::switch_utils::IsExtensionsInActionBoxEnabled())
PopulateForActionBoxMode();
else
PopulateForNonActionBoxMode();
« no previous file with comments | « chrome/browser/extensions/extension_prefs.cc ('k') | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698