| Index: net/nqe/network_quality_estimator.cc
|
| diff --git a/net/nqe/network_quality_estimator.cc b/net/nqe/network_quality_estimator.cc
|
| index 309ebe8c55a47a6f45a8eeac962fdab861ec841e..8c679299860777ac75ff2b747ce49f1388accfaf 100644
|
| --- a/net/nqe/network_quality_estimator.cc
|
| +++ b/net/nqe/network_quality_estimator.cc
|
| @@ -667,6 +667,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();
|
|
|