summaryrefslogtreecommitdiffstats
path: root/net/base/network_change_notifier.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/network_change_notifier.h')
-rw-r--r--net/base/network_change_notifier.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/base/network_change_notifier.h b/net/base/network_change_notifier.h
index 2ac6f57..044d9f4 100644
--- a/net/base/network_change_notifier.h
+++ b/net/base/network_change_notifier.h
@@ -224,8 +224,14 @@ class NET_EXPORT NetworkChangeNotifier {
// Register the Observer callbacks for producing histogram data. This
// should be called from the network thread to avoid race conditions.
+ // ShutdownHistogramWatcher() must be called prior to NetworkChangeNotifier
+ // destruction.
static void InitHistogramWatcher();
+ // Unregister the Observer callbacks for producing histogram data. This
+ // should be called from the network thread to avoid race conditions.
+ static void ShutdownHistogramWatcher();
+
// Allows a second NetworkChangeNotifier to be created for unit testing, so
// the test suite can create a MockNetworkChangeNotifier, but platform
// specific NetworkChangeNotifiers can also be created for testing. To use,