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 0a1e27723ff73da376c46cee1144ae80570c8136..18e4f19daa22d34430428d2cc364a9704523737e 100644 |
--- a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
+++ b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
@@ -61,6 +61,7 @@ |
#endif |
#if defined(OS_ANDROID) |
+#include "chrome/browser/android/intercept_download_resource_throttle.h" |
#include "components/navigation_interception/intercept_navigation_delegate.h" |
#endif |
@@ -330,6 +331,11 @@ void ChromeResourceDispatcherHostDelegate::DownloadStarting( |
throttles->push_back(new DownloadResourceThrottle( |
download_request_limiter_, child_id, route_id, request_id, |
request->method())); |
+#if defined(OS_ANDROID) |
+ throttles->push_back( |
+ new chrome::InterceptDownloadResourceThrottle( |
+ request, child_id, route_id, request_id)); |
+#endif |
} |
// If this isn't a new request, we've seen this before and added the standard |