summaryrefslogtreecommitdiffstats
path: root/net/base/network_change_notifier_linux.cc
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-21 23:17:24 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-21 23:17:24 +0000
commitaa92ba2eee40efbcca4221aa7722946081fa7438 (patch)
treec45f35c042403811923b6761bc464f59e712a5b3 /net/base/network_change_notifier_linux.cc
parenta5353ba87ebffe8689d3a557e55266aae1620280 (diff)
downloadchromium_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_linux.cc')
-rw-r--r--net/base/network_change_notifier_linux.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/net/base/network_change_notifier_linux.cc b/net/base/network_change_notifier_linux.cc
index e2e2236..9821be5 100644
--- a/net/base/network_change_notifier_linux.cc
+++ b/net/base/network_change_notifier_linux.cc
@@ -12,7 +12,6 @@
#include "base/logging.h"
#include "base/message_loop.h"
#include "net/base/net_errors.h"
-#include "net/base/net_log.h"
#include "net/base/network_change_notifier_netlink_linux.h"
namespace net {
@@ -23,13 +22,12 @@ const int kInvalidSocket = -1;
} // namespace
-NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(NetLog* net_log)
+NetworkChangeNotifierLinux::NetworkChangeNotifierLinux()
: netlink_fd_(kInvalidSocket),
#if defined(OS_CHROMEOS)
ALLOW_THIS_IN_INITIALIZER_LIST(factory_(this)),
#endif
- loop_(MessageLoopForIO::current()),
- net_log_(net_log) {
+ loop_(MessageLoopForIO::current()) {
netlink_fd_ = InitializeNetlinkSocket();
if (netlink_fd_ < 0) {
netlink_fd_ = kInvalidSocket;
@@ -110,10 +108,6 @@ void NetworkChangeNotifierLinux::ListenForNotifications() {
}
void NetworkChangeNotifierLinux::NotifyObserversIPAddressChanged() {
- BoundNetLog net_log =
- BoundNetLog::Make(net_log_, NetLog::SOURCE_NETWORK_CHANGE_NOTIFIER);
- // TODO(willchan): Add the netlink information into an EventParameter.
- net_log.AddEvent(NetLog::TYPE_NETWORK_IP_ADDRESS_CHANGED, NULL);
FOR_EACH_OBSERVER(Observer, observers_, OnIPAddressChanged());
}