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

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

Issue 1214183008: Update StartsWith calls to use new versions in chrome and content (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
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 6bb4f86ec0edcaabbbffeb808cee2d6b8325ed03..8b73134c79af3102c12b1754c3617a14b5bd74f2 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";
« no previous file with comments | « chrome/browser/chromeos/file_manager/file_tasks.cc ('k') | chrome/browser/chromeos/input_method/input_method_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698