| Index: chrome/browser/ui/webui/chromeos/login/l10n_util.h
|
| diff --git a/chrome/browser/ui/webui/chromeos/login/l10n_util.h b/chrome/browser/ui/webui/chromeos/login/l10n_util.h
|
| index 4b42a73443336c45d5118f425f0053637681565a..756e728399e0b68e095d0b406faba2bf2034f76f 100644
|
| --- a/chrome/browser/ui/webui/chromeos/login/l10n_util.h
|
| +++ b/chrome/browser/ui/webui/chromeos/login/l10n_util.h
|
| @@ -37,6 +37,14 @@ scoped_ptr<base::ListValue> GetUILanguageList(
|
| const std::vector<std::string>* most_relevant_language_codes,
|
| const std::string& selected);
|
|
|
| +// Returns the most first entry of |most_relevant_language_codes| that is
|
| +// actually available (present in |available_locales|). If none of the entries
|
| +// are present in |available_locales|, returns the |fallback_locale|.
|
| +std::string FindMostRelevantLocale(
|
| + const std::vector<std::string>& most_relevant_language_codes,
|
| + const base::ListValue& available_locales,
|
| + const std::string& fallback_locale);
|
| +
|
| // Return a list of supported accept languages. The listed languages can be used
|
| // in the Accept-Language header. The return value will look like:
|
| // [{'code': 'fi', 'displayName': 'Finnish', 'nativeDisplayName': 'suomi'}, ...]
|
|
|