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

Unified Diff: chrome/browser/download/download_extension_api.cc

Issue 10381122: Add flag to specify if explicitly requested download is from web. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments. Created 8 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: chrome/browser/download/download_extension_api.cc
diff --git a/chrome/browser/download/download_extension_api.cc b/chrome/browser/download/download_extension_api.cc
index 48006b83ce1ae96bdbcd98f17722a4bffec249a1..dc90545fabe5736773120319daeeacbd6fef6e5e 100644
--- a/chrome/browser/download/download_extension_api.cc
+++ b/chrome/browser/download/download_extension_api.cc
@@ -503,6 +503,7 @@ void DownloadsDownloadFunction::BeginDownloadOnIOThread() {
net::Error error = iodata_->rdh->BeginDownload(
request.Pass(),
+ false, // is_content_initiated
benjhayden 2012/05/14 13:51:51 This |false| just means that downloads.download()
Randy Smith (Not in Mondays) 2012/05/14 15:55:28 Yes, although I could imagine that we might add ot
iodata_->resource_context,
iodata_->render_process_host_id,
iodata_->render_view_host_routing_id,
« no previous file with comments | « no previous file | chrome/browser/plugin_installer.cc » ('j') | content/browser/download/download_manager_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698