diff options
-rw-r--r-- | chrome/browser/ui/toolbar/wrench_menu_model.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/chrome/browser/ui/toolbar/wrench_menu_model.cc b/chrome/browser/ui/toolbar/wrench_menu_model.cc index 6d46988..8d82ddd 100644 --- a/chrome/browser/ui/toolbar/wrench_menu_model.cc +++ b/chrome/browser/ui/toolbar/wrench_menu_model.cc @@ -191,10 +191,17 @@ ToolsMenuModel::ToolsMenuModel(ui::SimpleMenuModel::Delegate* delegate, ToolsMenuModel::~ToolsMenuModel() {} void ToolsMenuModel::Build(Browser* browser) { -#if !defined(OS_CHROMEOS) && !defined(OS_MACOSX) - AddItemWithStringId(IDC_CREATE_SHORTCUTS, IDS_CREATE_SHORTCUTS); - AddSeparator(ui::NORMAL_SEPARATOR); + bool show_create_shortcuts = true; +#if defined(OS_CHROMEOS) || defined(OS_MACOSX) + show_create_shortcuts = false; +#elif defined(USE_ASH) + if (browser->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH) + show_create_shortcuts = false; #endif + if (show_create_shortcuts) { + AddItemWithStringId(IDC_CREATE_SHORTCUTS, IDS_CREATE_SHORTCUTS); + AddSeparator(ui::NORMAL_SEPARATOR); + } AddItemWithStringId(IDC_MANAGE_EXTENSIONS, IDS_SHOW_EXTENSIONS); |