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

Unified Diff: net/nqe/network_quality_estimator.cc

Issue 2731333003: Record UMA only when network quality is eligible for caching (Closed)
Patch Set: Created 3 years, 9 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/nqe/network_quality_estimator_unittest.cc » ('j') | net/nqe/network_quality_store.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality_estimator.cc
diff --git a/net/nqe/network_quality_estimator.cc b/net/nqe/network_quality_estimator.cc
index b8861b30e0d7c1c364d499c9e5279a0b17b6915e..7ad32cb580cd713b2a76c88abdc59e786d42f68f 100644
--- a/net/nqe/network_quality_estimator.cc
+++ b/net/nqe/network_quality_estimator.cc
@@ -1469,8 +1469,10 @@ bool NetworkQualityEstimator::ReadCachedNetworkQualityEstimate() {
const bool cached_estimate_available = network_quality_store_->GetById(
current_network_id_, &cached_network_quality);
- UMA_HISTOGRAM_BOOLEAN("NQE.CachedNetworkQualityAvailable",
- cached_estimate_available);
+ if (network_quality_store_->EligibleForCaching(current_network_id_)) {
+ UMA_HISTOGRAM_BOOLEAN("NQE.CachedNetworkQualityAvailable",
+ cached_estimate_available);
+ }
if (!cached_estimate_available)
return false;
« no previous file with comments | « no previous file | net/nqe/network_quality_estimator_unittest.cc » ('j') | net/nqe/network_quality_store.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698