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 = |