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

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

Issue 9150028: Cleanup: ResourceDispatcherHost::BeginDownload takes a scoped_ptr<URLRequest> argument. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/process_unique_id/child_id/ Created 8 years, 11 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 113fcaeb95c0eb9b1ea37b75f3df23f07a2cfdef..4af5107a1e216c9fa061e08549d3256f8eeacd13 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -673,11 +673,11 @@ void RenderMessageFilter::OnDownloadUrl(const IPC::Message& message,
bool prompt_for_save_location = false;
DownloadSaveInfo save_info;
save_info.suggested_name = suggested_name;
- net::URLRequest* request = new net::URLRequest(
- url, resource_dispatcher_host_);
+ scoped_ptr<net::URLRequest> request(
+ new net::URLRequest(url, resource_dispatcher_host_));
request->set_referrer(referrer.spec());
resource_dispatcher_host_->BeginDownload(
- request,
+ request.Pass(),
save_info,
prompt_for_save_location,
DownloadResourceHandler::OnStartedCallback(),
« no previous file with comments | « content/browser/download/download_manager_impl.cc ('k') | content/browser/renderer_host/resource_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698