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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc

Issue 2777823002: Bypass DRP if a redirect cycle is detected (Closed)
Patch Set: ryansturm comments Created 3 years, 9 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
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc
index b9a4168edbcff688e38b2d144cbd0bf8fec99b49..cfe96f4bfc4ad452b06138995a16f0740617d681 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc
@@ -36,7 +36,7 @@ DataReductionProxyRequestType GetDataReductionProxyRequestType(
// Data Reduction Proxy, since 304s aren't required to have a Via header even
// if they came through the Data Reduction Proxy.
if (request.response_headers() &&
- (HasDataReductionProxyViaHeader(request.response_headers(), nullptr) ||
+ (HasDataReductionProxyViaHeader(*request.response_headers(), nullptr) ||
(request.response_headers()->response_code() == net::HTTP_NOT_MODIFIED &&
config.WasDataReductionProxyUsed(&request, nullptr)))) {
return VIA_DATA_REDUCTION_PROXY;

Powered by Google App Engine
This is Rietveld 408576698