| 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 e1371ac7de895a8ba26dc9aee15b8b1169352e4b..fcef97b20dd8a8fdd740f47f9460efbc7288da8f 100644
|
| --- a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
|
| +++ b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
|
| @@ -284,9 +284,12 @@ void ChromeResourceDispatcherHostDelegate::DownloadStarting(
|
|
|
| // If it's from the web, we don't trust it, so we push the throttle on.
|
| if (is_content_initiated) {
|
| - throttles->push_back(new DownloadResourceThrottle(
|
| - download_request_limiter_, child_id, route_id, request_id,
|
| - request->method()));
|
| + throttles->push_back(
|
| + new DownloadResourceThrottle(download_request_limiter_.get(),
|
| + child_id,
|
| + route_id,
|
| + request_id,
|
| + request->method()));
|
| #if defined(OS_ANDROID)
|
| throttles->push_back(
|
| new chrome::InterceptDownloadResourceThrottle(
|
| @@ -390,8 +393,11 @@ void ChromeResourceDispatcherHostDelegate::AppendStandardResourceThrottles(
|
| if (io_data->safe_browsing_enabled()->GetValue()) {
|
| bool is_subresource_request = resource_type != ResourceType::MAIN_FRAME;
|
| content::ResourceThrottle* throttle =
|
| - SafeBrowsingResourceThrottleFactory::Create(request, child_id, route_id,
|
| - is_subresource_request, safe_browsing_);
|
| + SafeBrowsingResourceThrottleFactory::Create(request,
|
| + child_id,
|
| + route_id,
|
| + is_subresource_request,
|
| + safe_browsing_.get());
|
| if (throttle)
|
| throttles->push_back(throttle);
|
| }
|
|
|