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

Unified Diff: net/base/network_change_notifier.cc

Issue 2785563002: Expire but don't clear HostCache on DNS config change (Closed)
Patch Set: Created 3 years, 9 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') | net/dns/host_resolver_impl.cc » ('j') | 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 f5bfa8cbf5e281cdbd97f545fd3c8a7478078b3c..bd47e3ce9d7be82c04b38b19080562646382fd06 100644
--- a/net/base/network_change_notifier.cc
+++ b/net/base/network_change_notifier.cc
@@ -930,6 +930,12 @@ void NetworkChangeNotifier::NotifyObserversOfConnectionTypeChangeForTests(
}
// static
+void NetworkChangeNotifier::NotifyObserversOfDNSChangeForTests() {
+ if (g_network_change_notifier)
+ g_network_change_notifier->NotifyObserversOfDNSChangeImpl();
+}
+
+// static
void NetworkChangeNotifier::NotifyObserversOfNetworkChangeForTests(
ConnectionType type) {
if (g_network_change_notifier)
« no previous file with comments | « net/base/network_change_notifier.h ('k') | net/dns/host_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698