| 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);
|
| }
|
|
|