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(), |