Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index b70b68b63be851d85c9830f9e0ac28ad6a206a5f..e698fa76ca86244512298b1598ea56473fe0883d 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -376,11 +376,13 @@ void ProfileImpl::DoFinalInit() { |
FilePath app_path = GetPath().Append(chrome::kIsolatedAppStateDirname); |
+ PrefService* pref_service = g_browser_process->local_state(); |
Miranda Callahan
2011/12/05 14:30:28
You actually already have this as a local variable
marja
2011/12/05 14:44:01
Done.
|
bool restore_old_session_cookies = |
session_restore_enabled_ && |
(!DidLastSessionExitCleanly() || |
CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kRestoreLastSession)); |
+ switches::kRestoreLastSession) || |
+ pref_service->GetBoolean(prefs::kWasRestarted)); |
Miranda Callahan
2011/12/05 14:30:28
after removing the above declaration:
local_State
marja
2011/12/05 14:44:01
Done.
|
// Make sure we initialize the ProfileIOData after everything else has been |
// initialized that we might be reading from the IO thread. |