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

Unified Diff: net/base/network_change_notifier.cc

Issue 512843002: Listen to OnNetworkChanged instead of OnIPAddressChanged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tests Created 6 years, 3 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
« no previous file with comments | « net/base/network_change_notifier.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier.cc
diff --git a/net/base/network_change_notifier.cc b/net/base/network_change_notifier.cc
index d451e075aa1e79289b5311ab4d03602e8f9d9a56..b75a5438b81692975a43002084b5b91a1e94dd1d 100644
--- a/net/base/network_change_notifier.cc
+++ b/net/base/network_change_notifier.cc
@@ -724,6 +724,13 @@ void NetworkChangeNotifier::NotifyObserversOfConnectionTypeChangeForTests(
}
// static
+void NetworkChangeNotifier::NotifyObserversOfNetworkChangeForTests(
+ ConnectionType type) {
+ if (g_network_change_notifier)
+ g_network_change_notifier->NotifyObserversOfNetworkChangeImpl(type);
+}
+
+// static
void NetworkChangeNotifier::SetTestNotificationsOnly(bool test_only) {
if (g_network_change_notifier)
g_network_change_notifier->test_notifications_only_ = test_only;
« no previous file with comments | « net/base/network_change_notifier.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698