Chromium Code Reviews| Index: chrome/browser/ui/toolbar/wrench_menu_model.cc |
| =================================================================== |
| --- chrome/browser/ui/toolbar/wrench_menu_model.cc (revision 153562) |
| +++ chrome/browser/ui/toolbar/wrench_menu_model.cc (working copy) |
| @@ -466,8 +466,14 @@ |
| AddItemWithStringId(IDC_NEW_TAB, IDS_NEW_TAB); |
| #if defined(OS_WIN) |
| if (base::win::IsMetroProcess()) { |
| + // Metro mode. |
| + if (base::win::GetVersion() > base::win::VERSION_WIN7) { |
|
ananta
2012/09/06 18:36:42
We can safely remove the version check here given
|
| + 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 +484,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); |
| } |