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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host_impl.cc

Issue 10910044: Removed calls to URLRequest::URLRequest in favor of URLRequestContext::CreateRequest (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | webkit/appcache/appcache_update_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(),
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | webkit/appcache/appcache_update_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698