summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authormarja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-05 10:40:35 +0000
committermarja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-05 10:40:35 +0000
commit93c53a39ad29094afc66423ca608e5fadc83c908 (patch)
treef291880bd81c9e139036b3e91d19381728480bbf /chrome/common
parenta456ee36211cd40b0eef2fc9d584577dc38bb378 (diff)
downloadchromium_src-93c53a39ad29094afc66423ca608e5fadc83c908.zip
chromium_src-93c53a39ad29094afc66423ca608e5fadc83c908.tar.gz
chromium_src-93c53a39ad29094afc66423ca608e5fadc83c908.tar.bz2
Store session cookies and restore them if chrome crashes or autorestarts.
The feature is behind a command line flag --enable-restore-session-state. BUG=1870 TEST=CookieMonsterTest.PersistSessionCookies, SQLitePersistentCookieStoreTest.Test(Dont)?LoadOldSessionCookies, SQLitePersistentCookieStoreTest.PersistHasExpiresAndIsPersistent Review URL: http://codereview.chromium.org/8533013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112970 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/chrome_switches.cc4
-rw-r--r--chrome/common/chrome_switches.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 7cf7930..f00e72e 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -539,6 +539,10 @@ const char kEnablePreconnect[] = "enable-preconnect";
// during chrome_browser_main.
const char kEnableProfiling[] = "enable-profiling";
+// Experimental. Enables restoring session state (cookies, session storage,
+// etc.) when autorestarting.
+const char kEnableRestoreSessionState[] = "enable-restore-session-state";
+
// Controls the support for SDCH filtering (dictionary based expansion of
// content). By default SDCH filtering is enabled. To disable SDCH filtering,
// use "--enable-sdch=0" as command line argument. SDCH is currently only
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 1d5abcf..044b25d 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -152,6 +152,7 @@ extern const char kEnableNaClDebug[];
extern const char kEnablePlatformApps[];
extern const char kEnablePreconnect[];
extern const char kEnableProfiling[];
+extern const char kEnableRestoreSessionState[];
extern const char kEnableResourceContentSettings[];
extern const char kEnableSdch[];
extern const char kEnableSearchProviderApiV2[];