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

Unified Diff: chrome/browser/chromeos/input_method/input_method_engine.cc

Issue 1220963005: Update base::StartsWith calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@starts_with
Patch Set: Created 5 years, 6 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
Index: chrome/browser/chromeos/input_method/input_method_engine.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_engine.cc b/chrome/browser/chromeos/input_method/input_method_engine.cc
index c25ff772ddf9b1caa4f3d79c1de7e1f8004391a8..b3894d22b02250571469833cda29aafd38099bc7 100644
--- a/chrome/browser/chromeos/input_method/input_method_engine.cc
+++ b/chrome/browser/chromeos/input_method/input_method_engine.cc
@@ -72,13 +72,13 @@ size_t GetUtf8StringLength(const char* s) {
std::string GetKeyFromEvent(const ui::KeyEvent& event) {
const std::string code = event.GetCodeString();
- if (base::StartsWithASCII(code, "Control", true))
+ if (base::StartsWith(code, "Control", base::CompareCase::SENSITIVE))
return "Ctrl";
- if (base::StartsWithASCII(code, "Shift", true))
+ if (base::StartsWith(code, "Shift", base::CompareCase::SENSITIVE))
return "Shift";
- if (base::StartsWithASCII(code, "Alt", true))
+ if (base::StartsWith(code, "Alt", base::CompareCase::SENSITIVE))
return "Alt";
- if (base::StartsWithASCII(code, "Arrow", true))
+ if (base::StartsWith(code, "Arrow", base::CompareCase::SENSITIVE))
return code.substr(5);
if (code == "Escape")
return "Esc";

Powered by Google App Engine
This is Rietveld 408576698