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

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: Build fix (browser_tests). 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..cd280cd25ebf44f85b695fc3996b9f9f9307dd37 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -380,7 +380,8 @@ void ProfileImpl::DoFinalInit() {
session_restore_enabled_ &&
(!DidLastSessionExitCleanly() ||
CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kRestoreLastSession));
+ switches::kRestoreLastSession) ||
+ local_state->GetBoolean(prefs::kWasRestarted));
// 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