| Index: content/browser/renderer_host/resource_dispatcher_host_impl.cc
|
| diff --git a/content/browser/renderer_host/resource_dispatcher_host_impl.cc b/content/browser/renderer_host/resource_dispatcher_host_impl.cc
|
| index 450641e0148f93008071c2abdd3fbe72402ac1de..855446642fa0e53007084ef72c14bc6d41b02c50 100644
|
| --- a/content/browser/renderer_host/resource_dispatcher_host_impl.cc
|
| +++ b/content/browser/renderer_host/resource_dispatcher_host_impl.cc
|
| @@ -933,10 +933,9 @@ void ResourceDispatcherHostImpl::BeginRequest(
|
| // chance to reset some state before we complete the transfer.
|
| deferred_loader->WillCompleteTransfer();
|
| } else {
|
| - new_request.reset(new net::URLRequest(
|
| - request_data.url,
|
| - NULL,
|
| - filter_->GetURLRequestContext(request_data.resource_type)));
|
| + net::URLRequestContext* context =
|
| + filter_->GetURLRequestContext(request_data.resource_type);
|
| + new_request.reset(context->CreateRequest(request_data.url, NULL));
|
| request = new_request.get();
|
|
|
| request->set_method(request_data.method);
|
| @@ -1256,7 +1255,7 @@ void ResourceDispatcherHostImpl::BeginSaveFile(
|
| }
|
|
|
| scoped_ptr<net::URLRequest> request(
|
| - new net::URLRequest(url, NULL, request_context));
|
| + request_context->CreateRequest(url, NULL));
|
| request->set_method("GET");
|
| request->set_referrer(MaybeStripReferrer(referrer.url).spec());
|
| webkit_glue::ConfigureURLRequestForReferrerPolicy(request.get(),
|
|
|