Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2821)

Unified Diff: chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc

Issue 2341643008: Defaulting all downloads to go through Chrome network stack (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/download/download_ui_controller.cc ('k') | chrome/test/data/android/download/dangerous.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
diff --git a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
index be878bc0d285bd5d245ed9353688604527b62aa8..a6f5862e9622da990c89b606bb5ba83cf864fe0e 100644
--- a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
+++ b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
@@ -99,10 +99,6 @@
#include "third_party/protobuf/src/google/protobuf/repeated_field.h"
#endif
-#if BUILDFLAG(ANDROID_JAVA_UI)
-#include "chrome/browser/android/intercept_download_resource_throttle.h"
-#endif
-
#if defined(OS_ANDROID)
#include "chrome/browser/loader/data_reduction_proxy_resource_throttle_android.h"
#include "components/navigation_interception/intercept_navigation_delegate.h"
@@ -510,11 +506,6 @@ void ChromeResourceDispatcherHostDelegate::DownloadStarting(
throttles->push_back(new DownloadResourceThrottle(
download_request_limiter_, info->GetWebContentsGetterForRequest(),
request->url(), request->method()));
-#if BUILDFLAG(ANDROID_JAVA_UI)
- throttles->push_back(
- new chrome::InterceptDownloadResourceThrottle(
- request, info->GetWebContentsGetterForRequest(), must_download));
-#endif
}
// If this isn't a new request, we've seen this before and added the standard
« no previous file with comments | « chrome/browser/download/download_ui_controller.cc ('k') | chrome/test/data/android/download/dangerous.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698