| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc
|
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc
|
| index 0b7b3fcf3aabc1647d97fa27013c06d75d88fd96..d9607104d519e3951917ddb93d763b373fee2bda 100644
|
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc
|
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc
|
| @@ -170,7 +170,7 @@ void DataReductionProxyBypassStats::OnProxyFallback(
|
| DataReductionProxyTypeInfo data_reduction_proxy_info;
|
| if (bypassed_proxy.is_valid() && !bypassed_proxy.is_direct() &&
|
| data_reduction_proxy_config_->IsDataReductionProxy(
|
| - bypassed_proxy.host_port_pair(), &data_reduction_proxy_info)) {
|
| + bypassed_proxy, &data_reduction_proxy_info)) {
|
| proxy_net_errors_count_++;
|
|
|
| // To account for the case when the proxy is reachable for sometime, and
|
| @@ -260,7 +260,8 @@ void DataReductionProxyBypassStats::RecordBypassedBytesHistograms(
|
| // proxy configuration resolves to anything other than direct:// for a URL,
|
| // the data reduction proxy will not be used.
|
| DCHECK(data_reduction_proxy_type_info.proxy_servers.empty());
|
| - if (!request.proxy_server().IsEmpty()) {
|
| + if (!request.proxy_server().is_valid() ||
|
| + !request.proxy_server().is_direct()) {
|
| RecordBypassedBytes(last_bypass_type_,
|
| DataReductionProxyBypassStats::PROXY_OVERRIDDEN,
|
| content_length);
|
|
|