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

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

Issue 23964011: Reuse webview classic cookies file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fix Created 7 years, 3 months 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 fd8149cf6fab6b6c296d078f5211c8d14f0f600b..01dc2e43d83611396b0fc04a77cc9b1433712ad9 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -387,7 +387,10 @@ void ProfileImplIOData::InitializeInternal(
lazy_params_->cookie_path,
lazy_params_->restore_old_session_cookies,
lazy_params_->special_storage_policy.get(),
- profile_params->cookie_monster_delegate.get());
+ profile_params->cookie_monster_delegate.get(),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
+ BrowserThread::GetBlockingPool()->GetSequencedTaskRunner(
+ BrowserThread::GetBlockingPool()->GetSequenceToken()));
joth 2013/09/14 19:40:24 could pass NULL for the second param and document
sgurun-gerrit only 2013/09/14 20:45:01 Done.
cookie_store->GetCookieMonster()->SetPersistSessionCookies(true);
}
@@ -482,7 +485,10 @@ void ProfileImplIOData::
lazy_params_->extensions_cookie_path,
lazy_params_->restore_old_session_cookies,
NULL,
- NULL);
+ NULL,
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
+ BrowserThread::GetBlockingPool()->GetSequencedTaskRunner(
+ BrowserThread::GetBlockingPool()->GetSequenceToken()));
joth 2013/09/14 19:40:24 yeah... seems nicer as this is duplicated several
sgurun-gerrit only 2013/09/14 20:45:01 Done.
// Enable cookies for devtools and extension URLs.
const char* schemes[] = {chrome::kChromeDevToolsScheme,
extensions::kExtensionScheme};
@@ -568,7 +574,10 @@ ProfileImplIOData::InitializeAppRequestContext(
cookie_path,
false,
NULL,
- NULL);
+ NULL,
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
+ BrowserThread::GetBlockingPool()->GetSequencedTaskRunner(
+ BrowserThread::GetBlockingPool()->GetSequenceToken()));
}
// Transfer ownership of the cookies and cache to AppRequestContext.

Powered by Google App Engine
This is Rietveld 408576698