| Index: chrome/browser/ui/browser_init.cc
|
| diff --git a/chrome/browser/ui/browser_init.cc b/chrome/browser/ui/browser_init.cc
|
| index ac3b17221f11c1a13d66c29c0ce5483b99e7d552..6d7a0935586e4834d8a042767afa0881b46b3f71 100644
|
| --- a/chrome/browser/ui/browser_init.cc
|
| +++ b/chrome/browser/ui/browser_init.cc
|
| @@ -332,9 +332,12 @@ bool IncognitoIsForced(const CommandLine& command_line,
|
|
|
| SessionStartupPref GetSessionStartupPref(const CommandLine& command_line,
|
| Profile* profile) {
|
| + PrefService* pref_service = g_browser_process->local_state();
|
| SessionStartupPref pref = SessionStartupPref::GetStartupPref(profile);
|
| - if (command_line.HasSwitch(switches::kRestoreLastSession))
|
| + if (command_line.HasSwitch(switches::kRestoreLastSession) ||
|
| + pref_service->GetBoolean(prefs::kWasRestarted)) {
|
| pref.type = SessionStartupPref::LAST;
|
| + }
|
| if (pref.type == SessionStartupPref::LAST &&
|
| IncognitoIsForced(command_line, profile->GetPrefs())) {
|
| // We don't store session information when incognito. If the user has
|
|
|