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

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

Issue 8533013: SessionRestore: Store session cookies and restore them if chrome crashes or auto-restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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
Index: chrome/browser/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index f0ada492a9e361e803c2377c1ce089d2a05aef91..09bc2489d91eab7fd597c8c656db17c1ce561c5d 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -324,6 +324,8 @@ void ProfileImplIOData::LazyInitializeInternal(
cookie_store =
new net::CookieMonster(cookie_db.get(),
profile_params->cookie_monster_delegate);
+ if (command_line.HasSwitch(switches::kEnableRestoreSessionState))
+ cookie_store->GetCookieMonster()->SetSyncSessionCookies(true);
}
net::CookieMonster* extensions_cookie_store =

Powered by Google App Engine
This is Rietveld 408576698