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

Unified Diff: chrome/test/chromedriver/server/http_handler.cc

Issue 1279123004: Replace ToLower calls to the new format (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 | « chrome/test/chromedriver/chrome_launcher.cc ('k') | chromeos/cryptohome/system_salt_getter.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 63c0a95bcaddd7eed308e25006d7df35831d81d8..c3941b0ee2597336fc233516091c1cda6c5b9026 100644
--- a/chrome/test/chromedriver/server/http_handler.cc
+++ b/chrome/test/chromedriver/server/http_handler.cc
@@ -722,14 +722,14 @@ namespace internal {
const char kNewSessionPathPattern[] = "session";
bool MatchesMethod(HttpMethod command_method, const std::string& method) {
- std::string lower_method = base::StringToLowerASCII(method);
+ std::string lower_method = base::ToLowerASCII(method);
switch (command_method) {
- case kGet:
- return lower_method == "get";
- case kPost:
- return lower_method == "post" || lower_method == "put";
- case kDelete:
- return lower_method == "delete";
+ case kGet:
+ return lower_method == "get";
+ case kPost:
+ return lower_method == "post" || lower_method == "put";
+ case kDelete:
+ return lower_method == "delete";
}
return false;
}
« no previous file with comments | « chrome/test/chromedriver/chrome_launcher.cc ('k') | chromeos/cryptohome/system_salt_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698