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

Unified Diff: net/test/spawned_test_server/remote_test_server.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/test/embedded_test_server/http_request.cc ('k') | net/tools/balsa/balsa_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/spawned_test_server/remote_test_server.cc
diff --git a/net/test/spawned_test_server/remote_test_server.cc b/net/test/spawned_test_server/remote_test_server.cc
index bf2c025185f861a59fc1b71d020dce4f5bfc36b7..0e1303e066c235b387fbeac524cb9afd8cdc8ff1 100644
--- a/net/test/spawned_test_server/remote_test_server.cc
+++ b/net/test/spawned_test_server/remote_test_server.cc
@@ -176,8 +176,8 @@ bool RemoteTestServer::Init(const base::FilePath& document_root) {
return false;
}
- std::vector<std::string> ports;
- base::SplitString(port_info, ':', &ports);
+ std::vector<std::string> ports = base::SplitString(
+ port_info, ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
if (ports.size() != 2u)
return false;
« no previous file with comments | « net/test/embedded_test_server/http_request.cc ('k') | net/tools/balsa/balsa_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698