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; |