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

Unified Diff: ui/login/account_picker/screen_account_picker.js

Issue 426063005: Allow recommended locales to be set for public sessions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: ui/login/account_picker/screen_account_picker.js
diff --git a/ui/login/account_picker/screen_account_picker.js b/ui/login/account_picker/screen_account_picker.js
index 401234d2a2437081cf0b732fff50c348c798ae51..cc10ec992de7e6b2c74a5792c1bd0d85d43bf9a4 100644
--- a/ui/login/account_picker/screen_account_picker.js
+++ b/ui/login/account_picker/screen_account_picker.js
@@ -37,6 +37,7 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
'setAuthType',
'showEasyUnlockBubble',
'setPublicSessionDisplayName',
+ 'setPublicSessionLocales',
'setPublicSessionKeyboardLayouts',
],
@@ -320,12 +321,32 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
},
/**
+ * Updates the list of locales available for a public session.
+ * @param {string} userID The user ID of the public session
+ * @param {!Object} locales The list of available locales
+ * @param {string} defaultLocale The locale to select by default
+ * @param {boolean} multipleRecommendedLocales Whether |locales| contains
+ * two or more recommended locales
+ */
+ setPublicSessionLocales: function(userID,
+ locales,
+ defaultLocale,
+ multipleRecommendedLocales) {
+ $('pod-row').setPublicSessionLocales(userID,
+ locales,
+ defaultLocale,
+ multipleRecommendedLocales);
+ },
+
+ /**
* Updates the list of available keyboard layouts for a public session pod.
* @param {string} userID The user ID of the public session
+ * @param {string} locale The locale to which this list of keyboard layouts
+ * applies
* @param {!Object} list List of available keyboard layouts
*/
- setPublicSessionKeyboardLayouts: function(userID, list) {
- $('pod-row').setPublicSessionKeyboardLayouts(userID, list);
+ setPublicSessionKeyboardLayouts: function(userID, locale, list) {
+ $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list);
}
};
});

Powered by Google App Engine
This is Rietveld 408576698