| Index: net/nqe/network_quality_estimator.cc
|
| diff --git a/net/nqe/network_quality_estimator.cc b/net/nqe/network_quality_estimator.cc
|
| index 3e03a8e4e4987cfc52f72d8629f721914c559be0..a9596d04815ee479e0534f05a0510866e4a809f9 100644
|
| --- a/net/nqe/network_quality_estimator.cc
|
| +++ b/net/nqe/network_quality_estimator.cc
|
| @@ -692,6 +692,11 @@ NetworkQualityEstimator::EffectiveConnectionType
|
| NetworkQualityEstimator::GetEffectiveConnectionType() const {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
|
|
| + // If the device is currently offline, then return
|
| + // EFFECTIVE_CONNECTION_TYPE_OFFLINE.
|
| + if (GetCurrentNetworkID().type == NetworkChangeNotifier::CONNECTION_NONE)
|
| + return EFFECTIVE_CONNECTION_TYPE_OFFLINE;
|
| +
|
| base::TimeDelta url_request_rtt = nqe::internal::InvalidRTT();
|
| if (!GetURLRequestRTTEstimate(&url_request_rtt))
|
| url_request_rtt = nqe::internal::InvalidRTT();
|
|
|