| 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 205993824612efaa6fe85cfdb8091d4e62305292..469edd6cdce4f16144a3268156bc400bcb8e2beb 100644
|
| --- a/content/browser/renderer_host/resource_dispatcher_host_impl.cc
|
| +++ b/content/browser/renderer_host/resource_dispatcher_host_impl.cc
|
| @@ -934,10 +934,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);
|
| @@ -1263,7 +1262,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(),
|
|
|