| Index: chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.cc
|
| diff --git a/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.cc b/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.cc
|
| index acfbd96288454c3a89f3512235ba304d768370ef..fe3e55cb9248d53d068dd8bc8e5c53f518626571 100644
|
| --- a/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.cc
|
| +++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.cc
|
| @@ -9,6 +9,7 @@
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/io_thread.h"
|
| #include "content/public/browser/browser_thread.h"
|
| +#include "net/nqe/network_quality_estimator.h"
|
|
|
| namespace nqe_test_util {
|
|
|
| @@ -16,9 +17,8 @@ namespace {
|
|
|
| // Reports |type| to all of NetworkQualityEstimator's
|
| // EffectiveConnectionTypeObservers.
|
| -void OverrideEffectiveConnectionTypeOnIO(
|
| - net::NetworkQualityEstimator::EffectiveConnectionType type,
|
| - IOThread* io_thread) {
|
| +void OverrideEffectiveConnectionTypeOnIO(net::EffectiveConnectionType type,
|
| + IOThread* io_thread) {
|
| if (!io_thread->globals()->network_quality_estimator)
|
| return;
|
| net::NetworkQualityEstimator* network_quality_estimator =
|
| @@ -30,8 +30,7 @@ void OverrideEffectiveConnectionTypeOnIO(
|
|
|
| } // namespace
|
|
|
| -void OverrideEffectiveConnectionTypeAndWait(
|
| - net::NetworkQualityEstimator::EffectiveConnectionType type) {
|
| +void OverrideEffectiveConnectionTypeAndWait(net::EffectiveConnectionType type) {
|
| // Block |run_loop| until OverrideEffectiveConnectionTypeOnIO has completed.
|
| // Any UI tasks posted by calling OverrideEffectiveConnectionTypeOnIO will
|
| // complete before the reply unblocks |run_loop|.
|
|
|