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

Unified Diff: net/tools/net_watcher/net_watcher.cc

Issue 1215933004: New new versions of Starts/EndsWith and SplitString in net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@starts_with
Patch Set: Created 5 years, 5 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/tools/gdig/gdig.cc ('k') | net/tools/quic/quic_client_bin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/net_watcher/net_watcher.cc
diff --git a/net/tools/net_watcher/net_watcher.cc b/net/tools/net_watcher/net_watcher.cc
index 03d8d9362ea8f5332ec686208b62b3087af8b8d1..ca25040748da62f82d90b94d20153aa08ec89644 100644
--- a/net/tools/net_watcher/net_watcher.cc
+++ b/net/tools/net_watcher/net_watcher.cc
@@ -170,9 +170,9 @@ int main(int argc, char* argv[]) {
command_line->GetSwitchValueASCII(kIgnoreNetifFlag);
base::hash_set<std::string> ignored_interfaces;
if (!ignored_netifs_str.empty()) {
- std::vector<std::string> ignored_netifs;
- base::SplitString(ignored_netifs_str, ',', &ignored_netifs);
- for (const std::string& ignored_netif : ignored_netifs) {
+ for (const std::string& ignored_netif :
+ base::SplitString(ignored_netifs_str, ",", base::TRIM_WHITESPACE,
+ base::SPLIT_WANT_ALL)) {
LOG(INFO) << "Ignoring: " << ignored_netif;
ignored_interfaces.insert(ignored_netif);
}
« no previous file with comments | « net/tools/gdig/gdig.cc ('k') | net/tools/quic/quic_client_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698