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

Side by Side Diff: chrome/browser/ui/toolbar/wrench_menu_model.cc

Issue 9345004: Remove the Create Application Shortcut... menu item (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/nibs/MainMenu.xib ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/toolbar/wrench_menu_model.h" 5 #include "chrome/browser/ui/toolbar/wrench_menu_model.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 ToolsMenuModel::ToolsMenuModel(ui::SimpleMenuModel::Delegate* delegate, 154 ToolsMenuModel::ToolsMenuModel(ui::SimpleMenuModel::Delegate* delegate,
155 Browser* browser) 155 Browser* browser)
156 : SimpleMenuModel(delegate) { 156 : SimpleMenuModel(delegate) {
157 Build(browser); 157 Build(browser);
158 } 158 }
159 159
160 ToolsMenuModel::~ToolsMenuModel() {} 160 ToolsMenuModel::~ToolsMenuModel() {}
161 161
162 void ToolsMenuModel::Build(Browser* browser) { 162 void ToolsMenuModel::Build(Browser* browser) {
163 #if !defined(OS_CHROMEOS) 163 #if !defined(OS_CHROMEOS) && !defined(OS_MACOSX)
164 #if defined(OS_MACOSX)
165 AddItemWithStringId(IDC_CREATE_SHORTCUTS, IDS_CREATE_APPLICATION_MAC);
166 #else
167 AddItemWithStringId(IDC_CREATE_SHORTCUTS, IDS_CREATE_SHORTCUTS); 164 AddItemWithStringId(IDC_CREATE_SHORTCUTS, IDS_CREATE_SHORTCUTS);
168 #endif
169 AddSeparator(); 165 AddSeparator();
170 #endif 166 #endif
171 167
172 AddItemWithStringId(IDC_MANAGE_EXTENSIONS, IDS_SHOW_EXTENSIONS); 168 AddItemWithStringId(IDC_MANAGE_EXTENSIONS, IDS_SHOW_EXTENSIONS);
173 #if defined(OS_CHROMEOS) 169 #if defined(OS_CHROMEOS)
174 AddItemWithStringId(IDC_FILE_MANAGER, IDS_FILE_MANAGER); 170 AddItemWithStringId(IDC_FILE_MANAGER, IDS_FILE_MANAGER);
175 #endif 171 #endif
176 AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER); 172 AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER);
177 AddItemWithStringId(IDC_CLEAR_BROWSING_DATA, IDS_CLEAR_BROWSING_DATA); 173 AddItemWithStringId(IDC_CLEAR_BROWSING_DATA, IDS_CLEAR_BROWSING_DATA);
178 174
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 &enable_increment, &enable_decrement); 571 &enable_increment, &enable_decrement);
576 } 572 }
577 zoom_label_ = l10n_util::GetStringFUTF16( 573 zoom_label_ = l10n_util::GetStringFUTF16(
578 IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent)); 574 IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent));
579 } 575 }
580 576
581 string16 WrenchMenuModel::GetSyncMenuLabel() const { 577 string16 WrenchMenuModel::GetSyncMenuLabel() const {
582 return sync_ui_util::GetSyncMenuLabel(ProfileSyncServiceFactory:: 578 return sync_ui_util::GetSyncMenuLabel(ProfileSyncServiceFactory::
583 GetInstance()->GetForProfile(browser_->profile()->GetOriginalProfile())); 579 GetInstance()->GetForProfile(browser_->profile()->GetOriginalProfile()));
584 } 580 }
OLDNEW
« no previous file with comments | « chrome/app/nibs/MainMenu.xib ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698