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

Unified Diff: chrome/browser/ui/toolbar/wrench_menu_model.cc

Issue 10885047: Metro mode switching (chrome side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser_command_controller.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/wrench_menu_model.cc
===================================================================
--- chrome/browser/ui/toolbar/wrench_menu_model.cc (revision 155242)
+++ chrome/browser/ui/toolbar/wrench_menu_model.cc (working copy)
@@ -466,8 +466,12 @@
AddItemWithStringId(IDC_NEW_TAB, IDS_NEW_TAB);
#if defined(OS_WIN)
if (base::win::IsMetroProcess()) {
+ // Metro mode.
+ AddSeparator(ui::SPACING_SEPARATOR);
+ AddItemWithStringId(IDC_WIN8_DESKTOP_RESTART, IDS_WIN8_DESKTOP_RESTART);
+ AddSeparator(ui::SPACING_SEPARATOR);
// In Metro, we only show the New Window options if there isn't already
- // a the window of the requested type (incognito or not) that is available.
+ // a window of the requested type (incognito or not) that is available.
if (browser_->profile()->IsOffTheRecord()) {
if (browser::FindBrowserWithProfile(
browser_->profile()->GetOriginalProfile(),
@@ -478,6 +482,12 @@
AddItemWithStringId(IDC_NEW_INCOGNITO_WINDOW, IDS_NEW_INCOGNITO_WINDOW);
}
} else {
+ // Desktop mode.
+ if (base::win::GetVersion() > base::win::VERSION_WIN7) {
+ AddSeparator(ui::SPACING_SEPARATOR);
+ AddItemWithStringId(IDC_WIN8_METRO_RESTART, IDS_WIN8_METRO_RESTART);
+ AddSeparator(ui::SPACING_SEPARATOR);
+ }
AddItemWithStringId(IDC_NEW_WINDOW, IDS_NEW_WINDOW);
AddItemWithStringId(IDC_NEW_INCOGNITO_WINDOW, IDS_NEW_INCOGNITO_WINDOW);
}
« no previous file with comments | « chrome/browser/ui/browser_command_controller.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698