Commit ff97e0c9 authored by Eyor Alemayehu's avatar Eyor Alemayehu Committed by Commit Bot

Added additional allowed locales

Bug: b:124778405
Change-Id: Ie2461294045761efa5215782c95a12393d633893
Reviewed-on: https://chromium-review.googlesource.com/c/1481957Reviewed-by: default avatarXiaohui Chen <xiaohuic@chromium.org>
Commit-Queue: Eyor Alemayehu <eyor@google.com>
Cr-Commit-Position: refs/heads/master@{#634745}
parent 60241d4d
......@@ -41,8 +41,18 @@ ash::mojom::AssistantAllowedState IsAssistantAllowedForProfile(
if (user_manager::UserManager::Get()->IsLoggedInAsPublicAccount())
return ash::mojom::AssistantAllowedState::DISALLOWED_BY_PUBLIC_SESSION;
const std::string kAllowedLocales[] = {ULOC_US, ULOC_UK, ULOC_CANADA,
ULOC_CANADA_FRENCH};
// String literals used in some cases in the array because their
// constant equivalents don't exist in:
// third_party/icu/source/common/unicode/uloc.h
const std::string kAllowedLocales[] = {ULOC_CANADA,
ULOC_CANADA_FRENCH,
ULOC_FRENCH,
ULOC_UK,
ULOC_US,
"da_DK",
"nl_NL",
"no_NO"
"sv_SE"};
const PrefService* prefs = profile->GetPrefs();
std::string pref_locale =
......
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