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

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

Issue 2019783002: Add histograms for requests that were fetched successfully (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sclittle, asvitkine comments Created 4 years, 7 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_config.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc
index 820a184dff1f5b19d02ea8eba77c099dded1a465..e42f809d13b89ad831a0619c014a4df6d9e1a2cc 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc
@@ -357,7 +357,8 @@ bool DataReductionProxyConfig::IsDataReductionProxy(
if (proxy_info) {
proxy_info->proxy_servers =
std::vector<net::ProxyServer>(proxy_it, proxy_list.end());
- proxy_info->is_fallback = (proxy_it != proxy_list.begin());
+ proxy_info->proxy_index =
+ static_cast<size_t>(proxy_it - proxy_list.begin());
}
return true;
}

Powered by Google App Engine
This is Rietveld 408576698