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

Unified Diff: android_webview/native/net_init_native_callback.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
Index: android_webview/native/net_init_native_callback.cc
diff --git a/android_webview/native/net_init_native_callback.cc b/android_webview/native/net_init_native_callback.cc
index 585282f06b4232cad7b77bc4b0831818a43144c3..e75df7fbb51787ae9fc4371cdc3d9b2c8d67c6d4 100644
--- a/android_webview/native/net_init_native_callback.cc
+++ b/android_webview/native/net_init_native_callback.cc
@@ -12,10 +12,12 @@
namespace android_webview {
class AwURLRequestJobFactory;
-scoped_ptr<net::URLRequestJobFactory> CreateAndroidJobFactoryAndCookieMonster(
- net::URLRequestContext* context,
- scoped_ptr<AwURLRequestJobFactory> job_factory) {
+void DidCreateURLRequestContextOnIOThread(net::URLRequestContext* context) {
SetCookieMonsterOnNetworkStackInit(context);
+}
+
+scoped_ptr<net::URLRequestJobFactory> CreateAndroidJobFactory(
+ scoped_ptr<AwURLRequestJobFactory> job_factory) {
return CreateAndroidRequestJobFactory(job_factory.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698