| Index: chrome/browser/net/nqe/ui_network_quality_estimator_service.cc
|
| diff --git a/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc b/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc
|
| index 3378ce3eedb5f6d7b071072f2a4760bdce1c8259..b4534e7af7a00b28b9019a17dab9ed2f11c02631 100644
|
| --- a/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc
|
| +++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service.cc
|
| @@ -89,15 +89,21 @@ void UINetworkQualityEstimatorService::Shutdown() {
|
| DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| weak_factory_.InvalidateWeakPtrs();
|
| }
|
|
|
| void UINetworkQualityEstimatorService::EffectiveConnectionTypeChanged(
|
| net::NetworkQualityEstimator::EffectiveConnectionType type) {
|
| DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| type_ = type;
|
| }
|
|
|
| +void UINetworkQualityEstimatorService::SetEffectiveConnectionTypeForTesting(
|
| + net::NetworkQualityEstimator::EffectiveConnectionType type) {
|
| + DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| + type_ = type;
|
| +}
|
| +
|
| net::NetworkQualityEstimator::EffectiveConnectionType
|
| UINetworkQualityEstimatorService::GetEffectiveConnectionType() const {
|
| DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| return type_;
|
| }
|
|
|