Searched refs:pref_locale (Results 1 – 10 of 10) sorted by relevance
17 bool LoadResources(const std::string& pref_locale) { in LoadResources() argument19 ui::ResourceBundle::GetSharedInstance().ReloadLocaleResources(pref_locale); in LoadResources()32 if (pref_locale.empty()) in LoadResources()36 pref_locale, NULL, ui::ResourceBundle::DO_NOT_LOAD_COMMON_RESOURCES); in LoadResources()
21 bool LoadResources(const std::string& pref_locale) { in LoadResources() argument23 ui::ResourceBundle::GetSharedInstance().ReloadLocaleResources(pref_locale); in LoadResources()35 pref_locale, NULL, ui::ResourceBundle::DO_NOT_LOAD_COMMON_RESOURCES); in LoadResources()
9 bool LoadResources(const std::string& pref_locale) { in LoadResources() argument
16 bool LoadResources(const std::string& pref_locale);
405 std::string GetApplicationLocaleInternal(const std::string& pref_locale) { in GetApplicationLocaleInternal() argument412 app_locale = pref_locale; in GetApplicationLocaleInternal()434 if (!pref_locale.empty()) in GetApplicationLocaleInternal()435 candidates.push_back(GetCanonicalLocale(pref_locale)); in GetApplicationLocaleInternal()472 if (!pref_locale.empty()) in GetApplicationLocaleInternal()473 candidates.push_back(pref_locale); in GetApplicationLocaleInternal()495 std::string GetApplicationLocale(const std::string& pref_locale, in GetApplicationLocale() argument497 const std::string locale = GetApplicationLocaleInternal(pref_locale); in GetApplicationLocale()503 std::string GetApplicationLocale(const std::string& pref_locale) { in GetApplicationLocale() argument504 return GetApplicationLocale(pref_locale, true /* set_icu_locale */); in GetApplicationLocale()
45 UI_BASE_EXPORT std::string GetApplicationLocale(const std::string& pref_locale,50 UI_BASE_EXPORT std::string GetApplicationLocale(const std::string& pref_locale);
398 std::string pref_locale; in RespectLocalePreference() local404 pref_locale = pref_app_locale; in RespectLocalePreference()405 if (pref_locale.empty()) in RespectLocalePreference()406 pref_locale = pref_bkup_locale; in RespectLocalePreference()409 if (pref_locale.empty() && user->has_gaia_account()) { in RespectLocalePreference()413 pref_locale = *account_locale; in RespectLocalePreference()417 if (pref_locale.empty()) in RespectLocalePreference()418 pref_locale = global_app_locale; in RespectLocalePreference()419 DCHECK(!pref_locale.empty()); in RespectLocalePreference()427 << " Selected '" << pref_locale << "'"; in RespectLocalePreference()[all …]
134 const std::string& pref_locale,190 std::string ReloadLocaleResources(const std::string& pref_locale);321 std::string LoadLocaleResources(const std::string& pref_locale);
167 const std::string& pref_locale, in InitSharedInstanceWithLocale() argument173 std::string result = g_shared_instance_->LoadLocaleResources(pref_locale); in InitSharedInstanceWithLocale()295 const std::string& pref_locale) { in LoadLocaleResources() argument297 std::string app_locale = l10n_util::GetApplicationLocale(pref_locale); in LoadLocaleResources()358 const std::string& pref_locale) { in ReloadLocaleResources() argument365 return LoadLocaleResources(pref_locale); in ReloadLocaleResources()
1204 std::string pref_locale = GetPrefs()->GetString(prefs::kApplicationLocale); in ChangeAppLocale() local1222 if (!pref_locale.empty()) { in ChangeAppLocale()1223 DCHECK(pref_locale == new_locale); in ChangeAppLocale()