diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-21 23:17:24 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-21 23:17:24 +0000 |
commit | aa92ba2eee40efbcca4221aa7722946081fa7438 (patch) | |
tree | c45f35c042403811923b6761bc464f59e712a5b3 /net/base/network_change_notifier_mac.cc | |
parent | a5353ba87ebffe8689d3a557e55266aae1620280 (diff) | |
download | chromium_src-aa92ba2eee40efbcca4221aa7722946081fa7438.zip chromium_src-aa92ba2eee40efbcca4221aa7722946081fa7438.tar.gz chromium_src-aa92ba2eee40efbcca4221aa7722946081fa7438.tar.bz2 |
Revert 50402 (build failure) - Pass in NetLog to NetworkChangeNotifier.
BUG=46822
Review URL: http://codereview.chromium.org/2857009
TBR=willchan@chromium.org
Review URL: http://codereview.chromium.org/2843017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50406 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/network_change_notifier_mac.cc')
-rw-r--r-- | net/base/network_change_notifier_mac.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/net/base/network_change_notifier_mac.cc b/net/base/network_change_notifier_mac.cc index 40c0808..ba38907 100644 --- a/net/base/network_change_notifier_mac.cc +++ b/net/base/network_change_notifier_mac.cc @@ -31,7 +31,6 @@ #include "base/message_loop.h" #include "base/scoped_cftyperef.h" #include "base/thread.h" -#include "net/base/net_log.h" namespace net { @@ -219,10 +218,9 @@ void NetworkChangeNotifierThread::Init() { } // namespace -NetworkChangeNotifierMac::NetworkChangeNotifierMac(NetLog* net_log) +NetworkChangeNotifierMac::NetworkChangeNotifierMac() : notifier_thread_(NULL), - method_factory_(this), - net_log_(net_log) { + method_factory_(this) { // TODO(willchan): Look to see if there's a better signal for when it's ok to // initialize this, rather than just delaying it by a fixed time. const int kNotifierThreadInitializationDelayMS = 1000; @@ -236,10 +234,6 @@ NetworkChangeNotifierMac::NetworkChangeNotifierMac(NetLog* net_log) void NetworkChangeNotifierMac::OnIPAddressChanged() { DCHECK(CalledOnValidThread()); - BoundNetLog net_log = - BoundNetLog::Make(net_log_, NetLog::SOURCE_NETWORK_CHANGE_NOTIFIER); - // TODO(willchan): Add the network change information into an EventParameter. - net_log.AddEvent(NetLog::TYPE_NETWORK_IP_ADDRESS_CHANGED, NULL); FOR_EACH_OBSERVER(Observer, observers_, OnIPAddressChanged()); } |