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

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

Issue 1977623002: Updates to DownloadUrlParameters in preparation for OOPIF changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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/drag_download_file.cc
diff --git a/content/browser/download/drag_download_file.cc b/content/browser/download/drag_download_file.cc
index 468c26f5c216a4108a10b0256b11ef4bfdf1ef6d..699b80672f7ba274e5f0114187f54ef0bfed424a 100644
--- a/content/browser/download/drag_download_file.cc
+++ b/content/browser/download/drag_download_file.cc
@@ -66,7 +66,8 @@ class DragDownloadFile::DragDownloadFileUI : public DownloadItem::Observer {
RecordDownloadSource(INITIATED_BY_DRAG_N_DROP);
std::unique_ptr<content::DownloadUrlParameters> params(
- DownloadUrlParameters::FromWebContents(web_contents_, url_));
+ DownloadUrlParameters::CreateForWebContentsMainFrame(
+ web_contents_, url_));
params->set_referrer(referrer_);
params->set_referrer_encoding(referrer_encoding_);
params->set_callback(base::Bind(&DragDownloadFileUI::OnDownloadStarted,

Powered by Google App Engine
This is Rietveld 408576698