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

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

Issue 1522893004: [Downloads] Use final URL for resumption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@download-browsertest-cleanup
Patch Set: Created 5 years 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_item_impl.cc
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc
index a5dfaec1af2ac84f009d4745667178900c7bb220..cf4294485a94276b72f032e45cb5f579e315cf18 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -1696,12 +1696,11 @@ void DownloadItemImpl::ResumeInterruptedDownload() {
scoped_ptr<DownloadUrlParameters> download_params;
if (GetWebContents()) {
- download_params = DownloadUrlParameters::FromWebContents(GetWebContents(),
- GetOriginalUrl());
+ download_params =
+ DownloadUrlParameters::FromWebContents(GetWebContents(), GetURL());
} else {
- download_params = make_scoped_ptr(
- new DownloadUrlParameters(GetOriginalUrl(), -1, -1, -1,
- GetBrowserContext()->GetResourceContext()));
+ download_params = make_scoped_ptr(new DownloadUrlParameters(
+ GetURL(), -1, -1, -1, GetBrowserContext()->GetResourceContext()));
}
download_params->set_file_path(GetFullPath());

Powered by Google App Engine
This is Rietveld 408576698