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

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

Issue 2334603002: Fix SSLUITest.TestBadHTTPSDownload with PlzNavigate. (Closed)
Patch Set: fix android temporarily Created 4 years, 3 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 54242d93b704f9300045d11bd6acfa575f8dcc03..7f7feea85e8da8a24fc12068bbc5aaeadcfdf297 100644
--- a/chrome/browser/android/intercept_download_resource_throttle.cc
+++ b/chrome/browser/android/intercept_download_resource_throttle.cc
@@ -53,12 +53,10 @@ bool InterceptDownloadResourceThrottle::IsDownloadInterceptionEnabled() {
InterceptDownloadResourceThrottle::InterceptDownloadResourceThrottle(
net::URLRequest* request,
- int render_process_id,
- int render_view_id,
+ const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
bool must_download)
: request_(request),
- render_process_id_(render_process_id),
- render_view_id_(render_view_id),
+ wc_getter_(wc_getter),
must_download_(must_download),
weak_factory_(this) {
}
@@ -156,7 +154,7 @@ void InterceptDownloadResourceThrottle::CheckCookiePolicy(
void InterceptDownloadResourceThrottle::StartDownload(
const DownloadInfo& info) {
DownloadControllerBase::Get()->CreateGETDownload(
- render_process_id_, render_view_id_, must_download_, info);
+ wc_getter_, must_download_, info);
controller()->Cancel();
RecordInterceptFailureReasons(NO_FAILURE);
}
« no previous file with comments | « chrome/browser/android/intercept_download_resource_throttle.h ('k') | chrome/browser/chrome_notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698