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

Unified Diff: chrome/browser/android/intercept_download_resource_throttle.cc

Issue 1854523002: If a download is initiated by download attribute, don't use stream viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/android/intercept_download_resource_throttle.cc
diff --git a/chrome/browser/android/intercept_download_resource_throttle.cc b/chrome/browser/android/intercept_download_resource_throttle.cc
index 4f5662fa13f0afc3063a4d1087bd63476739a4bd..30fd0a118f346f7833ec01595fd639fb5622d601 100644
--- a/chrome/browser/android/intercept_download_resource_throttle.cc
+++ b/chrome/browser/android/intercept_download_resource_throttle.cc
@@ -52,11 +52,13 @@ InterceptDownloadResourceThrottle::InterceptDownloadResourceThrottle(
net::URLRequest* request,
int render_process_id,
int render_view_id,
- int request_id)
+ int request_id,
+ bool must_download)
: request_(request),
render_process_id_(render_process_id),
render_view_id_(render_view_id),
- request_id_(request_id) {
+ request_id_(request_id),
+ must_download_(must_download) {
}
InterceptDownloadResourceThrottle::~InterceptDownloadResourceThrottle() {
@@ -119,7 +121,7 @@ void InterceptDownloadResourceThrottle::ProcessDownloadRequest() {
}
content::DownloadControllerAndroid::Get()->CreateGETDownload(
- render_process_id_, render_view_id_, request_id_);
+ render_process_id_, render_view_id_, request_id_, must_download_);
controller()->Cancel();
RecordInterceptFailureReasons(NO_FAILURE);
}

Powered by Google App Engine
This is Rietveld 408576698