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

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 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..781381f1c8df597edffdbe4a60ce8b2bd14d5f85 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,7 @@ 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 = proxy_it - proxy_list.begin();
sclittle 2016/05/27 21:17:28 nit: add a static_cast<size_t> here. (proxy_it - p
tbansal1 2016/05/27 22:35:11 Done.
}
return true;
}

Powered by Google App Engine
This is Rietveld 408576698