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

Unified Diff: chrome/browser/chromeos/input_method/input_method_manager_impl.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_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 d658efcc7503663eaeb54014703e56a8b54e61d5..bff428cf90affa2c97936a29952c3c3809a76663 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,26 @@ 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 (base::StartsWithASCII(component_id, "xkb:", true)) {
+ if (base::StartsWith(component_id, "xkb:", base::CompareCase::SENSITIVE)) {
ch = component_id[4];
category = INPUT_METHOD_CATEGORY_XKB;
- } else if (base::StartsWithASCII(component_id, "zh-", true)) {
+ } else if (base::StartsWith(component_id, "zh-",
+ base::CompareCase::SENSITIVE)) {
size_t pos = component_id.find("-t-i0-");
if (pos > 0)
pos += 6;
ch = component_id[pos];
category = INPUT_METHOD_CATEGORY_ZH;
- } else if (base::StartsWithASCII(component_id, "nacl_mozc_", true)) {
+ } else if (base::StartsWith(component_id, "nacl_mozc_",
+ base::CompareCase::SENSITIVE)) {
ch = component_id[10];
category = INPUT_METHOD_CATEGORY_JA;
- } else if (base::StartsWithASCII(component_id, "hangul_", true)) {
+ } else if (base::StartsWith(component_id, "hangul_",
+ base::CompareCase::SENSITIVE)) {
ch = component_id[7];
category = INPUT_METHOD_CATEGORY_KO;
- } else if (base::StartsWithASCII(component_id, "vkd_", true)) {
+ } else if (base::StartsWith(component_id, "vkd_",
+ base::CompareCase::SENSITIVE)) {
ch = component_id[4];
category = INPUT_METHOD_CATEGORY_M17N;
} else if (component_id.find("-t-i0-") > 0) {

Powered by Google App Engine
This is Rietveld 408576698