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

Unified Diff: chrome/browser/chromeos/input_method/input_method_util.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_util.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_util.cc b/chrome/browser/chromeos/input_method/input_method_util.cc
index 8164932a03c4c3b87c26458ce89a319396db9818..bdd8d942eeb014d285b89f00e65d5190ba7a30e0 100644
--- a/chrome/browser/chromeos/input_method/input_method_util.cc
+++ b/chrome/browser/chromeos/input_method/input_method_util.cc
@@ -429,7 +429,8 @@ bool InputMethodUtil::IsValidInputMethodId(
// static
bool InputMethodUtil::IsKeyboardLayout(const std::string& input_method_id) {
- return base::StartsWithASCII(input_method_id, "xkb:", false) ||
Nico 2015/07/06 17:55:00 why was comparing with "xkb:" a case-sensitive com
+ return base::StartsWith(input_method_id, "xkb:",
+ base::CompareCase::INSENSITIVE_ASCII) ||
extension_ime_util::IsKeyboardLayoutExtension(input_method_id);
}

Powered by Google App Engine
This is Rietveld 408576698