| 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);
|
|
|
|
|