| Index: chrome/browser/chromeos/login/screens/user_selection_screen.h
|
| diff --git a/chrome/browser/chromeos/login/screens/user_selection_screen.h b/chrome/browser/chromeos/login/screens/user_selection_screen.h
|
| index b7832f9dbcb2792eafb84c5b63ab9ee730c3eafc..d8cc1facc0ab25fb91e9a457282bfa61a63eb8ea 100644
|
| --- a/chrome/browser/chromeos/login/screens/user_selection_screen.h
|
| +++ b/chrome/browser/chromeos/login/screens/user_selection_screen.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include <map>
|
| #include <string>
|
| +#include <vector>
|
|
|
| #include "base/bind.h"
|
| #include "base/compiler_specific.h"
|
| @@ -68,6 +69,7 @@ class UserSelectionScreen
|
| bool is_owner,
|
| bool is_signin_to_add,
|
| ScreenlockBridge::LockHandler::AuthType auth_type,
|
| + const std::vector<std::string>* public_session_recommended_locales,
|
| base::DictionaryValue* user_dict);
|
|
|
| // Determines if user auth status requires online sign in.
|
| @@ -83,6 +85,17 @@ class UserSelectionScreen
|
| // taking the display name from the |User| owned by |UserManager|.
|
| void SetPublicSessionDisplayName(const std::string& user_id);
|
|
|
| + // Check whether the list of recommended locales set by policy for a public
|
| + // session has changed and if so, notify the UI.
|
| + void CheckForPublicSessionLocalePolicyChange(
|
| + policy::DeviceLocalAccountPolicyBroker* broker);
|
| +
|
| + // Send an updated list of locales for a public session to the UI, consisting
|
| + // of the |recommended_locales| followed by all other available locales.
|
| + void SetPublicSessionLocales(
|
| + const std::string& user_id,
|
| + const std::vector<std::string>* recommended_locales);
|
| +
|
| LoginDisplayWebUIHandler* handler_;
|
| bool handler_initialized_;
|
|
|
| @@ -98,6 +111,11 @@ class UserSelectionScreen
|
| typedef std::map<std::string, std::string> DisplayNamesMap;
|
| DisplayNamesMap public_session_display_names_;
|
|
|
| + // Map from public session user IDs to recommended locales set by policy.
|
| + typedef std::map<std::string, std::vector<std::string> >
|
| + PublicSessionRecommendedLocaleMap;
|
| + PublicSessionRecommendedLocaleMap public_session_recommended_locales_;
|
| +
|
| // Map of usernames to their current authentication type. If a user is not
|
| // contained in the map, it is using the default authentication type.
|
| std::map<std::string, ScreenlockBridge::LockHandler::AuthType>
|
|
|