Chromium Code Reviews| 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..e7ba56bc496dae0745f5704e77fa0ce25c90058f 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); |
|
scottmg
2016/09/12 16:33:46
wc_getter_
|
| controller()->Cancel(); |
| RecordInterceptFailureReasons(NO_FAILURE); |
| } |