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

Unified Diff: chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc

Issue 7385007: chromeos: Fix chromeos TODO in input_method_util.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « chrome/browser/chromeos/input_method/input_method_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc
index ea5c9b9fc0322531e114d8bb3f573c3914f6acb7..69e1fecbf30fa5ffe5abd65b23b6ff2023a6c8ff 100644
--- a/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc
@@ -101,8 +101,7 @@ ListValue* CrosLanguageOptionsHandler::GetInputMethodList(
language_codes->SetBoolean(language_code, true);
// Check kExtraLanguages to see if there are languages associated with
// this input method. If these are present, add these.
- for (size_t j = 0; j < arraysize(input_method::kExtraLanguages);
- ++j) {
+ for (size_t j = 0; j < input_method::kExtraLanguagesLength; ++j) {
const std::string extra_input_method_id =
input_method::kExtraLanguages[j].input_method_id;
const std::string extra_language_code =
@@ -130,8 +129,7 @@ ListValue* CrosLanguageOptionsHandler::GetLanguageList(
language_codes.insert(language_code);
}
// Collect the language codes from kExtraLanguages.
- for (size_t i = 0; i < arraysize(input_method::kExtraLanguages);
- ++i) {
+ for (size_t i = 0; i < input_method::kExtraLanguagesLength; ++i) {
const char* language_code =
input_method::kExtraLanguages[i].language_code;
language_codes.insert(language_code);
« no previous file with comments | « chrome/browser/chromeos/input_method/input_method_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698