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

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

Issue 1164713004: Store network quality samples so we can compute percentiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 5 years, 6 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
« no previous file with comments | « no previous file | net/base/network_quality.h » ('j') | net/base/network_quality.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6beee3cf6ce6f509c9b0ebae0bf41df0b7958cbc..667c86df30242e0699e843511c0ef0ffbbc4e219 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
@@ -377,7 +377,7 @@ bool DataReductionProxyConfig::IsNetworkQualityProhibitivelySlow(
return false;
net::NetworkQuality network_quality =
- network_quality_estimator->GetEstimate();
+ network_quality_estimator->GetPeakEstimate();
// TODO(tbansal): Set |network_prohibitively_slow| based on medians
// provided by NetworkQualityEstimator API and field trial parameters.
// Also, ensure that state of network is not changed more than once within
« no previous file with comments | « no previous file | net/base/network_quality.h » ('j') | net/base/network_quality.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698