Commit 660e22c9 authored by jshin's avatar jshin Committed by Commit bot

Do not block Sinhala any more

Now that CrOS has Noto Sans Sinhala. There's no need to block it any
more in the Accept-Language list.

BUG=240586
TEST=In accept-langauge selection UI, Sinhala is listed.

Review URL: https://codereview.chromium.org/552063002

Cr-Commit-Position: refs/heads/master@{#294215}
parent 67945b28
...@@ -67,12 +67,6 @@ void AddOptgroupOtherLayouts(base::ListValue* input_methods_list) { ...@@ -67,12 +67,6 @@ void AddOptgroupOtherLayouts(base::ListValue* input_methods_list) {
input_methods_list->Append(optgroup.release()); input_methods_list->Append(optgroup.release());
} }
// TODO(zork): Remove this blacklist when fonts are added to Chrome OS.
// see: crbug.com/240586
bool IsBlacklisted(const std::string& language_code) {
return language_code == "si"; // Sinhala
}
// Gets the list of languages with |descriptors| based on |base_language_codes|. // Gets the list of languages with |descriptors| based on |base_language_codes|.
// The |most_relevant_language_codes| will be first in the list. If // The |most_relevant_language_codes| will be first in the list. If
// |insert_divider| is true, an entry with its "code" attribute set to // |insert_divider| is true, an entry with its "code" attribute set to
...@@ -203,11 +197,6 @@ scoped_ptr<base::ListValue> GetLanguageList( ...@@ -203,11 +197,6 @@ scoped_ptr<base::ListValue> GetLanguageList(
if (language_codes.find(base_language_codes[i]) != language_codes.end()) if (language_codes.find(base_language_codes[i]) != language_codes.end())
continue; continue;
// TODO(zork): Remove this blacklist when fonts are added to Chrome OS.
// see: crbug.com/240586
if (IsBlacklisted(base_language_codes[i]))
continue;
base::string16 display_name = base::string16 display_name =
l10n_util::GetDisplayNameForLocale( l10n_util::GetDisplayNameForLocale(
base_language_codes[i], app_locale, false); base_language_codes[i], app_locale, false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment