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

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

Issue 10855022: Remove the effects of --disable-restore-session-state. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Test update. Created 8 years, 4 months 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/profiles/profile_impl.h ('k') | chrome/browser/profiles/profile_impl_io_data.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 34b30d98b984260434fa7ceea8fdad6a210dfde3..f794df36ca5180f4fa7b102c5a350f4aa30fe473 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -265,8 +265,7 @@ ProfileImpl::ProfileImpl(const FilePath& path,
favicon_service_created_(false),
start_time_(Time::Now()),
delegate_(delegate),
- predictor_(NULL),
- session_restore_enabled_(false) {
+ predictor_(NULL) {
DCHECK(!path.empty()) << "Using an empty path will attempt to write " <<
"profile files to the root directory!";
@@ -283,8 +282,6 @@ ProfileImpl::ProfileImpl(const FilePath& path,
!command_line->HasSwitch(switches::kDisablePreconnect),
g_browser_process->profile_manager() == NULL);
- session_restore_enabled_ =
- !command_line->HasSwitch(switches::kDisableRestoreSessionState);
#if defined(ENABLE_CONFIGURATION_POLICY)
policy_service_.reset(
g_browser_process->browser_policy_connector()->CreatePolicyService(this));
@@ -402,7 +399,6 @@ void ProfileImpl::DoFinalInit(bool is_new_profile) {
*CommandLine::ForCurrentProcess(), this).type;
#endif
bool restore_old_session_cookies =
- session_restore_enabled_ &&
(!DidLastSessionExitCleanly() ||
startup_pref_type == SessionStartupPref::LAST);
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698