Index: net/base/network_quality_estimator.cc |
diff --git a/net/base/network_quality_estimator.cc b/net/base/network_quality_estimator.cc |
index 2233333bcc3c8df4e913d687ec50c9d4996e84e5..7086da8d3198151facd6e82fb2a5b9ead05b7b2b 100644 |
--- a/net/base/network_quality_estimator.cc |
+++ b/net/base/network_quality_estimator.cc |
@@ -1089,6 +1089,9 @@ void NetworkQualityEstimator::QueryExternalEstimateProvider() { |
EXTERNAL_ESTIMATE_PROVIDER_STATUS_QUERY_SUCCESSFUL); |
base::TimeDelta rtt; |
if (external_estimate_provider_->GetRTT(&rtt)) { |
+ RecordExternalEstimateProviderMetrics( |
+ EXTERNAL_ESTIMATE_PROVIDER_STATUS_RTT_AVAILABLE); |
+ UMA_HISTOGRAM_TIMES("NQE.ExternalEstimateProvider.RTT", rtt); |
rtt_observations_.AddObservation( |
RttObservation(rtt, base::TimeTicks::Now(), EXTERNAL_ESTIMATE)); |
} |
@@ -1096,6 +1099,10 @@ void NetworkQualityEstimator::QueryExternalEstimateProvider() { |
int32_t downstream_throughput_kbps; |
if (external_estimate_provider_->GetDownstreamThroughputKbps( |
&downstream_throughput_kbps)) { |
+ RecordExternalEstimateProviderMetrics( |
+ EXTERNAL_ESTIMATE_PROVIDER_STATUS_DOWNLINK_BANDWIDTH_AVAILABLE); |
+ UMA_HISTOGRAM_COUNTS("NQE.ExternalEstimateProvider.DownlinkBandwidth", |
+ downstream_throughput_kbps); |
downstream_throughput_kbps_observations_.AddObservation( |
ThroughputObservation(downstream_throughput_kbps, |
base::TimeTicks::Now(), EXTERNAL_ESTIMATE)); |