Index: components/web_resource/resource_request_allowed_notifier_unittest.cc |
diff --git a/components/web_resource/resource_request_allowed_notifier_unittest.cc b/components/web_resource/resource_request_allowed_notifier_unittest.cc |
index 27905628ccb686bee15ae95a2087cadde70984a2..3383c8b58bcb2d1fc253ef8619752cd777c0b2c1 100644 |
--- a/components/web_resource/resource_request_allowed_notifier_unittest.cc |
+++ b/components/web_resource/resource_request_allowed_notifier_unittest.cc |
@@ -23,7 +23,8 @@ class TestNetworkChangeNotifier : public net::NetworkChangeNotifier { |
void SimulateNetworkConnectionChange( |
net::NetworkChangeNotifier::ConnectionType type) { |
connection_type_to_return_ = type; |
- net::NetworkChangeNotifier::NotifyObserversOfConnectionTypeChange(); |
+ net::NetworkChangeNotifier::NotifyObserversOfConnectionTypeChangeForTests( |
+ connection_type_to_return_); |
base::MessageLoop::current()->RunUntilIdle(); |
} |