| 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..83a86fa78a3209d22bd88dd9453a06e784bb54a0 100644
|
| --- a/net/nqe/network_quality_estimator.cc
|
| +++ b/net/nqe/network_quality_estimator.cc
|
| @@ -654,7 +654,10 @@ void NetworkQualityEstimator::OnConnectionTypeChanged(
|
| peak_network_quality_ = nqe::internal::NetworkQuality();
|
| downstream_throughput_kbps_observations_.Clear();
|
| rtt_observations_.Clear();
|
| +
|
| + // Update the local state for the new connection.
|
| current_network_id_ = GetCurrentNetworkID();
|
| + RecordNetworkIDAvailability();
|
|
|
| // Query the external estimate provider on certain connection types. Once the
|
| // updated estimates are available, OnUpdatedEstimateAvailable will be called
|
| @@ -749,6 +752,16 @@ void NetworkQualityEstimator::RecordMetricsOnConnectionTypeChanged() const {
|
| }
|
| }
|
|
|
| +void NetworkQualityEstimator::RecordNetworkIDAvailability() const {
|
| + DCHECK(thread_checker_.CalledOnValidThread());
|
| + if (current_network_id_.type ==
|
| + NetworkChangeNotifier::ConnectionType::CONNECTION_WIFI ||
|
| + NetworkChangeNotifier::IsConnectionCellular(current_network_id_.type)) {
|
| + UMA_HISTOGRAM_BOOLEAN("NQE.NetworkIdAvailable",
|
| + !current_network_id_.id.empty());
|
| + }
|
| +}
|
| +
|
| void NetworkQualityEstimator::RecordMetricsOnMainFrameRequest() const {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
|
|
|
|