Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2391)

Unified Diff: components/web_resource/resource_request_allowed_notifier_unittest.cc

Issue 1255263002: Remove a race around NetworkChangeNotifier::test_notifications_only_ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Possible iOS fix Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698