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 df00424575c1c3e692b2064cf9b093e06a59f533..da5d1afb1085409bb5281c48c687c1984a3ac32d 100644 |
--- a/chrome/browser/android/intercept_download_resource_throttle.cc |
+++ b/chrome/browser/android/intercept_download_resource_throttle.cc |
@@ -10,10 +10,6 @@ |
#include "net/http/http_response_headers.h" |
#include "net/url_request/url_request.h" |
-#if defined(SPDY_PROXY_AUTH_ORIGIN) |
-#include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings.h" |
-#endif // defined(SPDY_PROXY_AUTH_ORIGIN) |
- |
namespace chrome { |
InterceptDownloadResourceThrottle::InterceptDownloadResourceThrottle( |
@@ -55,8 +51,8 @@ void InterceptDownloadResourceThrottle::ProcessDownloadRequest() { |
net::HttpRequestHeaders headers; |
request_->GetFullRequestHeaders(&headers); |
if (headers.HasHeader(net::HttpRequestHeaders::kAuthorization) || |
- !DataReductionProxySettings::WasFetchedViaProxy( |
- request_->response_info().headers)) { |
+ !(request_->response_info().headers && |
+ request_->response_info().headers->IsChromeProxyResponse())) { |
return; |
} |
#else |