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

Unified Diff: chrome/browser/ui/toolbar/toolbar_actions_bar.cc

Issue 1228223002: Close wrench menu when Media Router Action clicked in Views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per rdevlin.cronin@'s comments and rebase. Created 5 years, 5 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/ui/toolbar/toolbar_actions_bar.cc
diff --git a/chrome/browser/ui/toolbar/toolbar_actions_bar.cc b/chrome/browser/ui/toolbar/toolbar_actions_bar.cc
index 849d2d2be335fca0ee495eca4184e82cbf6d25ca..31600f6974fe2f5f51648ce5fd554cd2bec938fc 100644
--- a/chrome/browser/ui/toolbar/toolbar_actions_bar.cc
+++ b/chrome/browser/ui/toolbar/toolbar_actions_bar.cc
@@ -269,7 +269,7 @@ size_t ToolbarActionsBar::GetIconCount() const {
int num_component_actions =
ComponentToolbarActionsFactory::GetInstance()->
- GetNumComponentActions();
+ GetNumComponentActions(browser_);
size_t num_total_actions = num_extension_actions + num_component_actions;
DCHECK_LE(visible_icons, num_total_actions);
@@ -342,7 +342,7 @@ void ToolbarActionsBar::CreateActions() {
ScopedVector<ToolbarActionViewController> component_actions =
ComponentToolbarActionsFactory::GetInstance()->
- GetComponentToolbarActions();
+ GetComponentToolbarActions(browser_);
DCHECK(component_actions.empty() ||
extensions::FeatureSwitch::extension_action_redesign()->IsEnabled());
toolbar_actions_.insert(toolbar_actions_.end(),

Powered by Google App Engine
This is Rietveld 408576698