Commit 12360b5a authored by marja@chromium.org's avatar marja@chromium.org

Remove --disable-restore-session-state.

The feature has been stable a long time now.

(This CL is part of the command line flag removal effort.)

BUG=

Review URL: https://codereview.chromium.org/190603002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255682 0039d316-1c4b-4281-b951-d872f2087c98
parent 86c0e1a9
......@@ -845,13 +845,6 @@ const Experiment kExperiments[] = {
kOsAll,
SINGLE_VALUE_TYPE_AND_VALUE(switches::kJavaScriptFlags, "--harmony")
},
{
"disable-restore-session-state",
IDS_FLAGS_DISABLE_RESTORE_SESSION_STATE_NAME,
IDS_FLAGS_DISABLE_RESTORE_SESSION_STATE_DESCRIPTION,
kOsAll,
SINGLE_VALUE_TYPE(switches::kDisableRestoreSessionState)
},
{
"disable-software-rasterizer",
IDS_FLAGS_DISABLE_SOFTWARE_RASTERIZER_NAME,
......
......@@ -595,12 +595,9 @@ void ProfileImpl::DoFinalInit() {
base::Bind(&EnsureReadmeFile, GetPath()),
base::TimeDelta::FromMilliseconds(create_readme_delay_ms));
if (!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableRestoreSessionState)) {
TRACE_EVENT0("browser", "ProfileImpl::SetSaveSessionStorageOnDisk")
content::BrowserContext::GetDefaultStoragePartition(this)->
GetDOMStorageContext()->SetSaveSessionStorageOnDisk();
}
TRACE_EVENT0("browser", "ProfileImpl::SetSaveSessionStorageOnDisk");
content::BrowserContext::GetDefaultStoragePartition(this)->
GetDOMStorageContext()->SetSaveSessionStorageOnDisk();
// Creation has been finished.
if (delegate_) {
......
......@@ -426,10 +426,6 @@ const char kDisableQuicPortSelection[] = "disable-quic-port-selection";
const char kDisableRestoreBackgroundContents[] =
"disable-restore-background-contents";
// Disables restoring session state (cookies, session storage, etc.) when
// restoring the browsing session.
const char kDisableRestoreSessionState[] = "disable-restore-session-state";
// Disables throttling prints initiated by scripts.
const char kDisableScriptedPrintThrottling[] =
"disable-scripted-print-throttling";
......
......@@ -125,7 +125,6 @@ extern const char kDisableQuicHttps[];
extern const char kDisableQuicPacing[];
extern const char kDisableQuicPortSelection[];
extern const char kDisableRestoreBackgroundContents[];
extern const char kDisableRestoreSessionState[];
extern const char kDisableSearchButtonInOmnibox[];
extern const char kDisableScriptedPrintThrottling[];
extern const char kDisableSpdy31[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment