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

Unified Diff: chromecast/net/network_change_notifier_factory_cast.cc

Issue 1137483004: [Chromecast] Ignore interfaces not used to connect to internet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: chromecast/net/network_change_notifier_factory_cast.cc
diff --git a/chromecast/net/network_change_notifier_factory_cast.cc b/chromecast/net/network_change_notifier_factory_cast.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4c1cd604d10152a5ce3ddc7e8ab6c98d6dae6480
--- /dev/null
+++ b/chromecast/net/network_change_notifier_factory_cast.cc
@@ -0,0 +1,20 @@
+// Copyright 2015 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.
+
+#include "chromecast/net/network_change_notifier_factory_cast.h"
+
+#include "chromecast/net/net_util_cast.h"
+#include "net/base/network_change_notifier_linux.h"
+
+namespace chromecast {
+
+net::NetworkChangeNotifier* NetworkChangeNotifierFactoryCast::CreateInstance() {
+ // Caller assumes ownership.
+ return new net::NetworkChangeNotifierLinux(GetIgnoredInterfaces());
+}
+
+NetworkChangeNotifierFactoryCast::~NetworkChangeNotifierFactoryCast() {
+}
+
+} // namespace chromecast
« chromecast/net/net_util_cast.cc ('K') | « chromecast/net/network_change_notifier_factory_cast.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698