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

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

Issue 10870060: Removed calls to URLRequest::URLRequest in favor of URLRequestContext::CreateRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged 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
Index: content/browser/renderer_host/render_message_filter.cc
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index 11738b2cee8ef9364b26b30b7a0023b9b9647f19..aa971df62b281432d35dba2dfc1ed9d3c4bce12a 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -731,10 +731,8 @@ void RenderMessageFilter::OnDownloadUrl(const IPC::Message& message,
const string16& suggested_name) {
DownloadSaveInfo save_info;
save_info.suggested_name = suggested_name;
- scoped_ptr<net::URLRequest> request(new net::URLRequest(
- url,
- NULL,
- resource_context_->GetRequestContext()));
+ scoped_ptr<net::URLRequest> request(
+ resource_context_->GetRequestContext()->CreateRequest(url, NULL));
request->set_referrer(referrer.url.spec());
webkit_glue::ConfigureURLRequestForReferrerPolicy(
request.get(), referrer.policy);
« no previous file with comments | « content/browser/download/download_manager_impl.cc ('k') | content/browser/renderer_host/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698