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

Unified Diff: net/base/address_tracker_linux.cc

Issue 10910076: [net (linux)] Don't send OnIPAddressChanged when the AddressMap is first populated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « no previous file | net/base/network_change_notifier_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/address_tracker_linux.cc
diff --git a/net/base/address_tracker_linux.cc b/net/base/address_tracker_linux.cc
index b97b2b00e0d48ce6615ecf494639b533078f1577..af2a88dafc6da6c15a3deab72a5c7bb3ac49e71a 100644
--- a/net/base/address_tracker_linux.cc
+++ b/net/base/address_tracker_linux.cc
@@ -141,6 +141,9 @@ void AddressTrackerLinux::Init() {
}
netlink_fd_ = sock;
+
+ // Consume any pending messages to populate the AddressMap, but don't notify.
+ ReadMessages();
mmenke 2012/09/04 19:40:16 Since this is a non-blocking socket, is there a ch
szym 2012/09/04 20:10:59 I just tested this and it seems to be working as i
}
AddressTrackerLinux::AddressMap AddressTrackerLinux::GetAddressMap() const {
« no previous file with comments | « no previous file | net/base/network_change_notifier_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698