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

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

Issue 929163002: Change bookmark app menu from Add to Dock... to Add to Applications... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chrome/app/generated_resources.grd ('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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 bool show_create_shortcuts = true; 234 bool show_create_shortcuts = true;
235 #if defined(OS_CHROMEOS) || defined(OS_MACOSX) 235 #if defined(OS_CHROMEOS) || defined(OS_MACOSX)
236 show_create_shortcuts = false; 236 show_create_shortcuts = false;
237 #elif defined(USE_ASH) 237 #elif defined(USE_ASH)
238 if (browser->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH) 238 if (browser->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH)
239 show_create_shortcuts = false; 239 show_create_shortcuts = false;
240 #endif 240 #endif
241 241
242 if (extensions::util::IsNewBookmarkAppsEnabled()) { 242 if (extensions::util::IsNewBookmarkAppsEnabled()) {
243 #if defined(OS_MACOSX) 243 #if defined(OS_MACOSX)
244 int string_id = IDS_ADD_TO_DOCK; 244 int string_id = IDS_ADD_TO_APPLICATIONS;
245 #elif defined(OS_WIN) 245 #elif defined(OS_WIN)
246 int string_id = IDS_ADD_TO_TASKBAR; 246 int string_id = IDS_ADD_TO_TASKBAR;
247 #else 247 #else
248 int string_id = IDS_ADD_TO_DESKTOP; 248 int string_id = IDS_ADD_TO_DESKTOP;
249 #endif 249 #endif
250 #if defined(USE_ASH) 250 #if defined(USE_ASH)
251 if (browser->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH) 251 if (browser->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH)
252 string_id = IDS_ADD_TO_SHELF; 252 string_id = IDS_ADD_TO_SHELF;
253 #endif 253 #endif
254 AddItemWithStringId(IDC_CREATE_HOSTED_APP, string_id); 254 AddItemWithStringId(IDC_CREATE_HOSTED_APP, string_id);
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 ->GetZoomPercent(); 1084 ->GetZoomPercent();
1085 } 1085 }
1086 zoom_label_ = l10n_util::GetStringFUTF16( 1086 zoom_label_ = l10n_util::GetStringFUTF16(
1087 IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent)); 1087 IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent));
1088 } 1088 }
1089 1089
1090 void WrenchMenuModel::OnZoomLevelChanged( 1090 void WrenchMenuModel::OnZoomLevelChanged(
1091 const content::HostZoomMap::ZoomLevelChange& change) { 1091 const content::HostZoomMap::ZoomLevelChange& change) {
1092 UpdateZoomControls(); 1092 UpdateZoomControls();
1093 } 1093 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698