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

Unified Diff: rlz/win/lib/machine_deal.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 | « remoting/client/plugin/chromoting_instance.cc ('k') | sandbox/win/src/named_pipe_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rlz/win/lib/machine_deal.cc
diff --git a/rlz/win/lib/machine_deal.cc b/rlz/win/lib/machine_deal.cc
index 8d6d369e095aec24a4d619e02587932df0e3393b..afb935fe61631343d12ddd816132c4eb2e4e2b45 100644
--- a/rlz/win/lib/machine_deal.cc
+++ b/rlz/win/lib/machine_deal.cc
@@ -107,8 +107,8 @@ bool GetResponseValue(const std::string& response_line,
base::CompareCase::SENSITIVE))
return false;
- std::vector<std::string> tokens;
- base::SplitString(response_line, ':', &tokens);
+ std::vector<std::string> tokens = base::SplitString(
+ response_line, ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
if (tokens.size() != 2)
return false;
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | sandbox/win/src/named_pipe_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698