Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Unified Diff: chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h

Issue 426063005: Allow recommended locales to be set for public sessions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix buffer overflow in test. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h
diff --git a/chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h b/chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h
index cd244a9696cccd1639bd8326b04a1c0c01c54381..46e71ff4a3838e247d2ae8ecedb0037ce9cbff57 100644
--- a/chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h
+++ b/chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h
@@ -7,6 +7,7 @@
#include <map>
#include <string>
+#include <vector>
#include "base/compiler_specific.h"
#include "base/macros.h"
@@ -38,10 +39,21 @@ class ChromeUserSelectionScreen
void CheckForPublicSessionDisplayNameChange(
policy::DeviceLocalAccountPolicyBroker* broker);
+ // 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);
+
// Notify the UI that the display name for a public session has changed,
// taking the display name from the |User| owned by |UserManager|.
void SetPublicSessionDisplayName(const std::string& user_id);
+ // 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);
+
bool handler_initialized_;
policy::DeviceLocalAccountPolicyService* device_local_account_policy_service_;

Powered by Google App Engine
This is Rietveld 408576698