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

Unified Diff: content/browser/download/download_request_core.cc

Issue 1979783002: [Merge M51][Downloads] Use the initiating StoragePartition for resumption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 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/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;
}
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/browser/download/download_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698