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

Unified Diff: chrome/test/chromedriver/capabilities.cc

Issue 1240183002: Update SplitString calls in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 | « chrome/test/base/chrome_process_util_mac.cc ('k') | chrome/test/chromedriver/chrome/adb_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/capabilities.cc
diff --git a/chrome/test/chromedriver/capabilities.cc b/chrome/test/chromedriver/capabilities.cc
index 33b34d26cc5e76f8e98cd86f63bd4b61685aae7d..bc5bbbb960964f13e821a214683280b216153e9b 100644
--- a/chrome/test/chromedriver/capabilities.cc
+++ b/chrome/test/chromedriver/capabilities.cc
@@ -294,8 +294,8 @@ Status ParseUseRemoteBrowser(const base::Value& option,
if (!option.GetAsString(&server_addr))
return Status(kUnknownError, "must be 'host:port'");
- std::vector<std::string> values;
- base::SplitString(server_addr, ':', &values);
+ std::vector<std::string> values = base::SplitString(
+ server_addr, ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
if (values.size() != 2)
return Status(kUnknownError, "must be 'host:port'");
« no previous file with comments | « chrome/test/base/chrome_process_util_mac.cc ('k') | chrome/test/chromedriver/chrome/adb_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698