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

Unified Diff: chromecast/net/net_util_cast.cc

Issue 1141503002: Revert of [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
« no previous file with comments | « chromecast/net/net_util_cast.h ('k') | chromecast/net/network_change_notifier_factory_cast.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/net/net_util_cast.cc
diff --git a/chromecast/net/net_util_cast.cc b/chromecast/net/net_util_cast.cc
deleted file mode 100644
index 6e688316c8a46e3c290d6ecd6aef857f2a89fb51..0000000000000000000000000000000000000000
--- a/chromecast/net/net_util_cast.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// 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/net_util_cast.h"
-
-#include "base/command_line.h"
-#include "base/strings/string_split.h"
-#include "chromecast/base/cast_sys_info_util.h"
-#include "chromecast/net/net_switches.h"
-#include "chromecast/public/cast_sys_info.h"
-
-namespace chromecast {
-
-base::hash_set<std::string> GetIgnoredInterfaces() {
- base::hash_set<std::string> ignored_interfaces;
- scoped_ptr<CastSysInfo> sys_info = CreateSysInfo();
- if (!sys_info->GetApInterface().empty())
- ignored_interfaces.insert(sys_info->GetApInterface());
-
- // Add interfaces from "netif-to-ignore" switch.
- base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
- base::CommandLine::StringType netifs_to_ignore_str =
- command_line->GetSwitchValueNative(switches::kNetifsToIgnore);
- base::CommandLine::StringVector netifs_to_ignore_vector;
- base::SplitString(netifs_to_ignore_str, ',', &netifs_to_ignore_vector);
- for (const auto& netif : netifs_to_ignore_vector)
- ignored_interfaces.insert(netif);
-
- return ignored_interfaces;
-}
-
-} // namespace chromecast
« no previous file with comments | « chromecast/net/net_util_cast.h ('k') | chromecast/net/network_change_notifier_factory_cast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698