| Index: components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc
|
| diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc b/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc
|
| index 7d362f259f8fd945fd40ff9746e42224053b60c1..7383a8fc4c1ada5b5623d25eb33ee46f7c7689df 100644
|
| --- a/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc
|
| +++ b/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc
|
| @@ -65,6 +65,12 @@ bool MaybeBypassProxyAndPrepareToRetry(
|
| if (data_reduction_proxy_type_info.proxy_servers.first.is_empty())
|
| return false;
|
|
|
| + // At this point, the response is expected to have the data reduction proxy
|
| + // via header, so detect and report cases where the via header is missing.
|
| + DataReductionProxyUsageStats::DetectAndRecordMissingViaHeaderResponseCode(
|
| + !data_reduction_proxy_type_info.proxy_servers.second.is_empty(),
|
| + original_response_headers);
|
| +
|
| DataReductionProxyTamperDetection::DetectAndReport(
|
| original_response_headers,
|
| data_reduction_proxy_type_info.proxy_servers.first.SchemeIsSecure());
|
|
|