Chromium Code Reviews| Index: content/browser/loader/resource_dispatcher_host_impl.cc |
| =================================================================== |
| --- content/browser/loader/resource_dispatcher_host_impl.cc (revision 255909) |
| +++ content/browser/loader/resource_dispatcher_host_impl.cc (working copy) |
| @@ -1057,9 +1057,12 @@ |
| } |
| // Construct the request. |
| + net::CookieStore* cookie_store = |
| + GetContentClient()->browser()->OverrideCookieStoreForRenderProcess( |
|
mmenke
2014/03/12 16:43:00
I think "OverrideCookieStoreForRenderProcess" isn'
tburkard
2014/03/12 16:51:32
jam suggested this name.
Also, if you look at the
|
| + 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( |
| @@ -1360,8 +1363,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); |