| Index: chrome/browser/lifetime/application_lifetime.cc
|
| ===================================================================
|
| --- chrome/browser/lifetime/application_lifetime.cc (revision 155262)
|
| +++ chrome/browser/lifetime/application_lifetime.cc (working copy)
|
| @@ -257,6 +257,18 @@
|
| #endif
|
| }
|
|
|
| +#if defined(OS_WIN)
|
| +void AttemptRestartWithModeSwitch() {
|
| + // The kRestartSwitchMode preference does not exists for Windows 7 and older
|
| + // operating systems so there is no need for OS version check.
|
| + PrefService* prefs = g_browser_process->local_state();
|
| + if (!prefs->HasPrefPath(prefs::kRestartSwitchMode))
|
| + return;
|
| + prefs->SetBoolean(prefs::kRestartSwitchMode, true);
|
| + browser::AttemptRestart();
|
| +}
|
| +#endif
|
| +
|
| void AttemptExit() {
|
| // If we know that all browsers can be closed without blocking,
|
| // don't notify users of crashes beyond this point.
|
|
|