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

Unified Diff: tools/ipc_fuzzer/fuzzer/fuzzer_main.cc

Issue 1284833004: Remove remaining legacy SplitString calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « tools/gn/standard_out.cc ('k') | tools/ipc_fuzzer/message_tools/message_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/fuzzer/fuzzer_main.cc
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer_main.cc b/tools/ipc_fuzzer/fuzzer/fuzzer_main.cc
index b92e44aa8e56b3207f47ef707c68be3a8fa73839..6bd2f3bba5bac3d1be2c7ca5fcda6c53b2db6538 100644
--- a/tools/ipc_fuzzer/fuzzer/fuzzer_main.cc
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer_main.cc
@@ -159,8 +159,8 @@ int Mutate(base::CommandLine* cmd, Fuzzer* fuzzer) {
bool permute = cmd->HasSwitch(kPermuteSwitch);
std::string type_string_list = cmd->GetSwitchValueASCII(kTypeListSwitch);
- std::vector<std::string> type_string_vector;
- base::SplitString(type_string_list, ',', &type_string_vector);
+ std::vector<std::string> type_string_vector = base::SplitString(
+ type_string_list, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
std::set<uint32> type_set;
for (size_t i = 0; i < type_string_vector.size(); ++i) {
type_set.insert(atoi(type_string_vector[i].c_str()));
« no previous file with comments | « tools/gn/standard_out.cc ('k') | tools/ipc_fuzzer/message_tools/message_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698