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

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

Issue 1172183002: Move StartsWith[ASCII] to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util3
Patch Set: merger 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 32c125d1e18a0a95af1f59ffa5b4e7b6a71be53d..c25ff772ddf9b1caa4f3d79c1de7e1f8004391a8 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 (StartsWithASCII(code, "Control", true))
+ if (base::StartsWithASCII(code, "Control", true))
return "Ctrl";
- if (StartsWithASCII(code, "Shift", true))
+ if (base::StartsWithASCII(code, "Shift", true))
return "Shift";
- if (StartsWithASCII(code, "Alt", true))
+ if (base::StartsWithASCII(code, "Alt", true))
return "Alt";
- if (StartsWithASCII(code, "Arrow", true))
+ if (base::StartsWithASCII(code, "Arrow", true))
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