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

Unified Diff: chrome/test/chromedriver/server/http_handler.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/chromedriver/server/chromedriver_server.cc ('k') | chrome/tools/convert_dict/aff_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/server/http_handler.cc
diff --git a/chrome/test/chromedriver/server/http_handler.cc b/chrome/test/chromedriver/server/http_handler.cc
index 0d54c220505ab675e3dce797dbf9f132b864c787..63c0a95bcaddd7eed308e25006d7df35831d81d8 100644
--- a/chrome/test/chromedriver/server/http_handler.cc
+++ b/chrome/test/chromedriver/server/http_handler.cc
@@ -742,10 +742,10 @@ bool MatchesCommand(const std::string& method,
if (!MatchesMethod(command.method, method))
return false;
- std::vector<std::string> path_parts;
- base::SplitString(path, '/', &path_parts);
- std::vector<std::string> command_path_parts;
- base::SplitString(command.path_pattern, '/', &command_path_parts);
+ std::vector<std::string> path_parts = base::SplitString(
+ path, "/", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
+ std::vector<std::string> command_path_parts = base::SplitString(
+ command.path_pattern, "/", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
if (path_parts.size() != command_path_parts.size())
return false;
« no previous file with comments | « chrome/test/chromedriver/server/chromedriver_server.cc ('k') | chrome/tools/convert_dict/aff_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698