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

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: Rebased 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
« no previous file with comments | « no previous file | net/nqe/network_quality_estimator_unittest.cc » ('j') | no next file with comments »
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 3b27cb7afc9163482e722c67d8dd8c333b7a1ec6..e05ec56394946d1592eedd63d29b43b8787d4ad7 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698