| 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 937c55018db7c4b9278bfcc2717a70e26351fda2..f6e7a9b9891150973b45b4a040b619e0cad960a6 100644
|
| --- a/chrome/browser/ui/toolbar/wrench_menu_model.cc
|
| +++ b/chrome/browser/ui/toolbar/wrench_menu_model.cc
|
| @@ -22,6 +22,7 @@
|
| #include "chrome/browser/signin/signin_manager_factory.h"
|
| #include "chrome/browser/signin/signin_ui_util.h"
|
| #include "chrome/browser/task_manager/task_manager.h"
|
| +#include "chrome/browser/ui/bookmarks/bookmark_utils.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_commands.h"
|
| #include "chrome/browser/ui/browser_finder.h"
|
| @@ -422,6 +423,11 @@ bool WrenchMenuModel::IsCommandIdVisible(int command_id) const {
|
| } else if (command_id == IDC_UPGRADE_DIALOG) {
|
| return UpgradeDetector::GetInstance()->notify_upgrade();
|
| }
|
| +
|
| + // Extensions have the ability to hide the bookmark page menu item.
|
| + if (command_id == IDC_BOOKMARK_PAGE)
|
| + return chrome::ShouldShowBookmarkPageMenuItem(browser_->profile());
|
| +
|
| return true;
|
| }
|
|
|
|
|