Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index 7bc0df943205aaebea39ce2af59d36339b778a0b..af93fce0e8fa18a847d31119d075e1c927248fb0 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -367,11 +367,13 @@ void ProfileImpl::DoFinalInit() { |
FilePath app_path = GetPath().Append(chrome::kIsolatedAppStateDirname); |
+ PrefService* pref_service = g_browser_process->local_state(); |
bool restore_old_session_cookies = |
session_restore_enabled_ && |
(!DidLastSessionExitCleanly() || |
CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kRestoreLastSession)); |
+ switches::kRestoreLastSession) || |
+ pref_service->GetBoolean(prefs::kWasRestarted)); |
// Make sure we initialize the ProfileIOData after everything else has been |
// initialized that we might be reading from the IO thread. |