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

Unified Diff: android_webview/browser/net/aw_url_request_context_getter.cc

Issue 12387028: Fix for CookieManager init race condition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | android_webview/browser/net/init_native_callback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/net/aw_url_request_context_getter.cc
diff --git a/android_webview/browser/net/aw_url_request_context_getter.cc b/android_webview/browser/net/aw_url_request_context_getter.cc
index 6ec1aad7db56be9a00b7ec48b95294e4e9187db7..f728c559d22c3853e5b334880178e66e06180b49 100644
--- a/android_webview/browser/net/aw_url_request_context_getter.cc
+++ b/android_webview/browser/net/aw_url_request_context_getter.cc
@@ -72,6 +72,8 @@ void AwURLRequestContextGetter::Init() {
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)));
main_http_factory_.reset(main_cache);
url_request_context_->set_http_transaction_factory(main_cache);
+
+ DidCreateURLRequestContextOnIOThread(url_request_context_.get());
boliu 2013/03/01 00:19:06 This is not true...the getter is initialized but t
Kristian Monsen 2013/03/01 00:19:08 Can this safely be used before the job factory is
joth 2013/03/01 00:28:13 I think you mean the opposite? the request context
}
void AwURLRequestContextGetter::PopulateNetworkSessionParams(
@@ -118,8 +120,7 @@ net::URLRequestContext* AwURLRequestContextGetter::GetURLRequestContext() {
DCHECK(set_protocol);
// Create a chain of URLRequestJobFactories. Keep |job_factory_| pointed
// at the beginning of the chain.
- job_factory_ = CreateAndroidJobFactoryAndCookieMonster(
- url_request_context_.get(), job_factory.Pass());
+ job_factory_ = CreateAndroidJobFactory(job_factory.Pass());
job_factory_.reset(new net::ProtocolInterceptJobFactory(
job_factory_.Pass(),
scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>(
« no previous file with comments | « no previous file | android_webview/browser/net/init_native_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698