| Index: content/browser/download/download_request_core.cc
|
| diff --git a/content/browser/download/download_request_core.cc b/content/browser/download/download_request_core.cc
|
| index 3f70e956baa78676b3a19f3968bc4825098a6865..75455c6109f22d4637c4a126cc663b2cacc6266e 100644
|
| --- a/content/browser/download/download_request_core.cc
|
| +++ b/content/browser/download/download_request_core.cc
|
| @@ -112,8 +112,9 @@ scoped_ptr<net::URLRequest> DownloadRequestCore::CreateRequestOnIOThread(
|
| // DownloadUrlParameters can-not include resource_dispatcher_host_impl.h, so
|
| // we must down cast. RDHI is the only subclass of RDH as of 2012 May 4.
|
| scoped_ptr<net::URLRequest> request(
|
| - params->resource_context()->GetRequestContext()->CreateRequest(
|
| - params->url(), net::DEFAULT_PRIORITY, nullptr));
|
| + params->url_request_context_getter()
|
| + ->GetURLRequestContext()
|
| + ->CreateRequest(params->url(), net::DEFAULT_PRIORITY, nullptr));
|
| request->set_method(params->method());
|
|
|
| if (!params->post_body().empty()) {
|
| @@ -181,7 +182,7 @@ scoped_ptr<net::URLRequest> DownloadRequestCore::CreateRequestOnIOThread(
|
| request->SetExtraRequestHeaderByName(header.first, header.second,
|
| false /*overwrite*/);
|
|
|
| - DownloadRequestData::Attach(request.get(), std::move(params), download_id);
|
| + DownloadRequestData::Attach(request.get(), params, download_id);
|
| return request;
|
| }
|
|
|
|
|