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

Unified Diff: net/base/network_change_notifier_linux.cc

Issue 1869503003: Convert //net and //chromecast to std::unordered_* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « net/base/network_change_notifier_linux.h ('k') | net/base/network_interfaces_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier_linux.cc
diff --git a/net/base/network_change_notifier_linux.cc b/net/base/network_change_notifier_linux.cc
index b18b6c21c2421be7bb83e475583ae19299cc1a45..a056d5704a96e086277620a55ddf1e4342f4c8f7 100644
--- a/net/base/network_change_notifier_linux.cc
+++ b/net/base/network_change_notifier_linux.cc
@@ -4,6 +4,8 @@
#include "net/base/network_change_notifier_linux.h"
+#include <unordered_set>
mmenke 2016/04/06 21:02:22 nit: Already included in the header
davidben 2016/04/07 21:30:41 Done.
+
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
@@ -15,7 +17,7 @@ namespace net {
class NetworkChangeNotifierLinux::Thread : public base::Thread {
public:
- explicit Thread(const base::hash_set<std::string>& ignored_interfaces);
+ explicit Thread(const std::unordered_set<std::string>& ignored_interfaces);
~Thread() override;
// Plumbing for NetworkChangeNotifier::GetCurrentConnectionType.
@@ -45,7 +47,7 @@ class NetworkChangeNotifierLinux::Thread : public base::Thread {
};
NetworkChangeNotifierLinux::Thread::Thread(
- const base::hash_set<std::string>& ignored_interfaces)
+ const std::unordered_set<std::string>& ignored_interfaces)
: base::Thread("NetworkChangeNotifier"),
address_tracker_(new internal::AddressTrackerLinux(
base::Bind(&NetworkChangeNotifierLinux::Thread::OnIPAddressChanged,
@@ -95,7 +97,7 @@ void NetworkChangeNotifierLinux::Thread::OnLinkChanged() {
}
NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(
- const base::hash_set<std::string>& ignored_interfaces)
+ const std::unordered_set<std::string>& ignored_interfaces)
: NetworkChangeNotifier(NetworkChangeCalculatorParamsLinux()),
notifier_thread_(new Thread(ignored_interfaces)) {
// We create this notifier thread because the notification implementation
« no previous file with comments | « net/base/network_change_notifier_linux.h ('k') | net/base/network_interfaces_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698