diff options
Diffstat (limited to 'chrome/browser/ui/browser_command_controller.cc')
-rw-r--r-- | chrome/browser/ui/browser_command_controller.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc index 7d5a24d..2704f1d 100644 --- a/chrome/browser/ui/browser_command_controller.cc +++ b/chrome/browser/ui/browser_command_controller.cc @@ -487,11 +487,14 @@ void BrowserCommandController::ExecuteCommandWithDisposition( browser_->SetMetroSnapMode(false); break; case IDC_WIN8_DESKTOP_RESTART: + if (!VerifyMetroSwitchForApps(window()->GetNativeWindow(), id)) + break; + chrome::AttemptRestartToDesktopMode(); content::RecordAction(content::UserMetricsAction("Win8DesktopRestart")); break; case IDC_WIN8_METRO_RESTART: - if (!VerifySwitchToMetroForApps(window()->GetNativeWindow())) + if (!VerifyMetroSwitchForApps(window()->GetNativeWindow(), id)) break; // SwitchToMetroUIHandler deletes itself. |