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

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

Issue 2334623003: Store net::ProxyServer in HttpResponseInfo object (Closed)
Patch Set: Rebased, fix compile error Created 4 years, 2 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 bdb0d476a71afd95298b865bef4012cede5b5a08..b9a4168edbcff688e38b2d144cbd0bf8fec99b49 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
@@ -55,7 +55,8 @@ DataReductionProxyRequestType GetDataReductionProxyRequestType(
// due to other proxies overriding the Data Reduction Proxy, and bypasses due
// to local bypass rules.
if ((request.load_flags() & net::LOAD_BYPASS_PROXY) ||
- (!request.proxy_server().IsEmpty() &&
+ (request.proxy_server().is_valid() &&
+ !request.proxy_server().is_direct() &&
!config.IsDataReductionProxy(request.proxy_server(), NULL)) ||
config.IsBypassedByDataReductionProxyLocalRules(
request, data_reduction_proxy_config)) {

Powered by Google App Engine
This is Rietveld 408576698