Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4741)

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 8745015: Store the "browser autorestarted, last session must be restored" information in a preference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch set incomplete? Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_browser_main_posix.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/browser/chrome_browser_main_posix.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698