Index: content/browser/download/download_manager_impl.cc |
diff --git a/content/browser/download/download_manager_impl.cc b/content/browser/download/download_manager_impl.cc |
index c6b7de59274381b5719efe5cc8d7397800038b81..a5e1c05ba5386eaf9a4179ea8d75661587f03ea3 100644 |
--- a/content/browser/download/download_manager_impl.cc |
+++ b/content/browser/download/download_manager_impl.cc |
@@ -73,11 +73,11 @@ void BeginDownload(const URLParams& url_params, |
ResourceDispatcherHost* resource_dispatcher_host, |
const RenderParams& render_params, |
const content::ResourceContext* context) { |
- net::URLRequest* request = new net::URLRequest(url_params.url_, |
- resource_dispatcher_host); |
+ scoped_ptr<net::URLRequest> request( |
+ new net::URLRequest(url_params.url_, resource_dispatcher_host)); |
request->set_referrer(url_params.referrer_.spec()); |
resource_dispatcher_host->BeginDownload( |
- request, save_info, true, |
+ request.Pass(), save_info, true, |
DownloadResourceHandler::OnStartedCallback(), |
render_params.render_process_id_, |
render_params.render_view_id_, |