| Index: chrome/browser/ui/toolbar/wrench_menu_model.cc
|
| diff --git a/chrome/browser/ui/toolbar/wrench_menu_model.cc b/chrome/browser/ui/toolbar/wrench_menu_model.cc
|
| index 625359402eed4d5f58e83ab2bd64939c0aca0cb5..d7504a013c3c12446089bcb6b4e6e40174c0cdfd 100644
|
| --- a/chrome/browser/ui/toolbar/wrench_menu_model.cc
|
| +++ b/chrome/browser/ui/toolbar/wrench_menu_model.cc
|
| @@ -36,7 +36,7 @@
|
| #include "chrome/browser/ui/toolbar/bookmark_sub_menu_model.h"
|
| #include "chrome/browser/ui/toolbar/encoding_menu_controller.h"
|
| #include "chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h"
|
| -#include "chrome/browser/ui/toolbar/toolbar_actions_model.h"
|
| +#include "chrome/browser/ui/toolbar/toolbar_actions_bar.h"
|
| #include "chrome/browser/upgrade_detector.h"
|
| #include "chrome/common/chrome_paths.h"
|
| #include "chrome/common/chrome_switches.h"
|
| @@ -966,7 +966,7 @@ bool WrenchMenuModel::AddGlobalErrorMenuItems() {
|
| void WrenchMenuModel::CreateActionToolbarOverflowMenu() {
|
| // We only add the extensions overflow container if there are any icons that
|
| // aren't shown in the main container.
|
| - if (!ToolbarActionsModel::Get(browser_->profile())->all_icons_visible()) {
|
| + if (browser_->window()->GetToolbarActionsBar()->NeedsOverflow()) {
|
| #if defined(OS_MACOSX)
|
| // There's a bug in AppKit menus, where if a menu item with a custom view
|
| // (like the extensions overflow menu) is the first menu item, it is not
|
|
|