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

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

Issue 2127373006: Use base::StartWith() in more places when appropriate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, resolve conflict Created 4 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_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 ba721371857a5fa25bd6e3974f3c519710976d0d..4caff1f58e67a617dcb362c60fda1acf6738acd5 100644
--- a/chrome/browser/chromeos/input_method/input_method_util.cc
+++ b/chrome/browser/chromeos/input_method/input_method_util.cc
@@ -392,7 +392,7 @@ std::string InputMethodUtil::GetLocalizedDisplayName(
const InputMethodDescriptor& descriptor) const {
// Localizes the input method name.
const std::string& disp = descriptor.name();
- if (disp.find("__MSG_") == 0) {
+ if (base::StartsWith(disp, "__MSG_", base::CompareCase::SENSITIVE)) {
const InputMethodNameMap* map = kInputMethodNameMap;
size_t map_size = arraysize(kInputMethodNameMap);
std::string name = base::ToUpperASCII(disp);

Powered by Google App Engine
This is Rietveld 408576698