Index: content/browser/loader/resource_dispatcher_host_impl.cc |
=================================================================== |
--- content/browser/loader/resource_dispatcher_host_impl.cc (revision 256594) |
+++ content/browser/loader/resource_dispatcher_host_impl.cc (working copy) |
@@ -1056,9 +1056,12 @@ |
} |
// Construct the request. |
+ net::CookieStore* cookie_store = |
+ GetContentClient()->browser()->OverrideCookieStoreForRenderProcess( |
+ child_id); |
scoped_ptr<net::URLRequest> new_request; |
new_request = request_context->CreateRequest( |
- request_data.url, request_data.priority, NULL); |
+ request_data.url, request_data.priority, NULL, cookie_store); |
new_request->set_method(request_data.method); |
new_request->set_first_party_for_cookies( |
@@ -1359,8 +1362,13 @@ |
return; |
} |
+ net::CookieStore* cookie_store = |
+ GetContentClient()->browser()->OverrideCookieStoreForRenderProcess( |
+ child_id); |
scoped_ptr<net::URLRequest> request( |
- request_context->CreateRequest(url, net::DEFAULT_PRIORITY, NULL)); |
+ request_context->CreateRequest(url, net::DEFAULT_PRIORITY, NULL, |
+ cookie_store)); |
+ |
request->set_method("GET"); |
SetReferrerForRequest(request.get(), referrer); |