diff options
author | droger@google.com <droger@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-11 10:58:17 +0000 |
---|---|---|
committer | droger@google.com <droger@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-11 10:58:17 +0000 |
commit | a301055dc36c7c8caf8424d21f10719682acb4c8 (patch) | |
tree | 204a0ce6fa40668596705cb3dc8798da4cd4cbff /net/base/network_config_watcher_mac.cc | |
parent | 60f60f854736bd82e9e8d5967ec160df38fcd660 (diff) | |
download | chromium_src-a301055dc36c7c8caf8424d21f10719682acb4c8.zip chromium_src-a301055dc36c7c8caf8424d21f10719682acb4c8.tar.gz chromium_src-a301055dc36c7c8caf8424d21f10719682acb4c8.tar.bz2 |
Split the initialisation of NeworkChangeNotifierMac.
The initialization function is split into two:
- to register for SCNetworkReachability notifications,
- to register for SCDynamicStore notifications.
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/9150002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117200 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/network_config_watcher_mac.cc')
-rw-r--r-- | net/base/network_config_watcher_mac.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/base/network_config_watcher_mac.cc b/net/base/network_config_watcher_mac.cc index 7c63240..464ebfa 100644 --- a/net/base/network_config_watcher_mac.cc +++ b/net/base/network_config_watcher_mac.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -105,6 +105,7 @@ void NetworkConfigWatcherMacThread::InitNotifications() { kCFRunLoopCommonModes); // Set up notifications for interface and IP address changes. + delegate_->StartReachabilityNotifications(); delegate_->SetDynamicStoreNotificationKeys(store.get()); } |