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

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: 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
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/login/account_picker/user_pod_row.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 537f6861ccff525d24953e19c67d7cff959c55f8..c03184b150bc61166f3db98777067adc817ee4c5 100644
--- a/ui/login/account_picker/screen_account_picker.js
+++ b/ui/login/account_picker/screen_account_picker.js
@@ -31,6 +31,7 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
'setAuthType',
'showEasyUnlockBubble',
'setPublicSessionDisplayName',
+ 'setPublicSessionLocales',
'setPublicSessionKeyboardLayouts',
],
@@ -314,12 +315,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);
}
};
});
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/login/account_picker/user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698