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

Unified Diff: net/nqe/network_quality_estimator.cc

Issue 2076353002: Record NQE ECT at main frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: net/nqe/network_quality_estimator.cc
diff --git a/net/nqe/network_quality_estimator.cc b/net/nqe/network_quality_estimator.cc
index 93e177d07803d2e5bf6a3798106f1792a317f7ad..e1685d5c9654ec2a028858b6aaea08a8a3647234 100644
--- a/net/nqe/network_quality_estimator.cc
+++ b/net/nqe/network_quality_estimator.cc
@@ -776,6 +776,18 @@ void NetworkQualityEstimator::RecordMetricsOnMainFrameRequest() const {
"MainFrame.Kbps.Percentile50.", current_network_id_.type, 1000 * 1000);
throughput_percentile->Add(kbps);
}
+
+ const EffectiveConnectionType effective_connection_type =
+ GetEffectiveConnectionType();
+ base::HistogramBase* effective_connection_type_histogram =
+ base::Histogram::FactoryGet(
+ std::string("NQE.MainFrame.EffectiveConnectionType.") +
+ GetNameForConnectionType(current_network_id_.type),
+ 0, EFFECTIVE_CONNECTION_TYPE_LAST,
+ EFFECTIVE_CONNECTION_TYPE_LAST /* Number of buckets */,
+ base::HistogramBase::kUmaTargetedHistogramFlag);
+
+ effective_connection_type_histogram->Add(effective_connection_type);
}
NetworkQualityEstimator::EffectiveConnectionType
« no previous file with comments | « no previous file | net/nqe/network_quality_estimator_unittest.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698