Index: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
diff --git a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
index f10dfc30079d1c56ec8774c33f763aeaa1fba531..351d35a985508162f152020cee1f22be9fe04bae 100644 |
--- a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
+++ b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
@@ -419,9 +419,11 @@ void ChromeResourceDispatcherHostDelegate::DownloadStarting( |
// If it's from the web, we don't trust it, so we push the throttle on. |
if (is_content_initiated) { |
+ const content::ResourceRequestInfo* info = |
+ content::ResourceRequestInfo::ForRequest(request); |
throttles->push_back(new DownloadResourceThrottle( |
- download_request_limiter_, child_id, route_id, request->url(), |
- request->method())); |
+ download_request_limiter_, info->GetWebContentsGetterForRequest(), |
+ request->url(), request->method())); |
#if defined(OS_ANDROID) |
throttles->push_back( |
new chrome::InterceptDownloadResourceThrottle( |