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

Unified Diff: chrome/browser/chromeos/input_method/input_method_manager_impl.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_manager_impl.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_manager_impl.cc b/chrome/browser/chromeos/input_method/input_method_manager_impl.cc
index 7baeec4d710bb3b18ccd30e5e840ba624d8365c1..d658efcc7503663eaeb54014703e56a8b54e61d5 100644
--- a/chrome/browser/chromeos/input_method/input_method_manager_impl.cc
+++ b/chrome/browser/chromeos/input_method/input_method_manager_impl.cc
@@ -70,22 +70,22 @@ InputMethodCategory GetInputMethodCategory(const std::string& input_method_id,
extension_ime_util::GetComponentIDByInputMethodID(input_method_id);
InputMethodCategory category = INPUT_METHOD_CATEGORY_UNKNOWN;
char ch = 0;
- if (StartsWithASCII(component_id, "xkb:", true)) {
+ if (base::StartsWithASCII(component_id, "xkb:", true)) {
ch = component_id[4];
category = INPUT_METHOD_CATEGORY_XKB;
- } else if (StartsWithASCII(component_id, "zh-", true)) {
+ } else if (base::StartsWithASCII(component_id, "zh-", true)) {
size_t pos = component_id.find("-t-i0-");
if (pos > 0)
pos += 6;
ch = component_id[pos];
category = INPUT_METHOD_CATEGORY_ZH;
- } else if (StartsWithASCII(component_id, "nacl_mozc_", true)) {
+ } else if (base::StartsWithASCII(component_id, "nacl_mozc_", true)) {
ch = component_id[10];
category = INPUT_METHOD_CATEGORY_JA;
- } else if (StartsWithASCII(component_id, "hangul_", true)) {
+ } else if (base::StartsWithASCII(component_id, "hangul_", true)) {
ch = component_id[7];
category = INPUT_METHOD_CATEGORY_KO;
- } else if (StartsWithASCII(component_id, "vkd_", true)) {
+ } else if (base::StartsWithASCII(component_id, "vkd_", true)) {
ch = component_id[4];
category = INPUT_METHOD_CATEGORY_M17N;
} else if (component_id.find("-t-i0-") > 0) {
« no previous file with comments | « chrome/browser/chromeos/input_method/input_method_engine.cc ('k') | chrome/browser/chromeos/input_method/input_method_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698