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 3d14d363ccefe5c64b1e5238adc9a21fce7c8b77..401234d2a2437081cf0b732fff50c348c798ae51 100644 |
--- a/ui/login/account_picker/screen_account_picker.js |
+++ b/ui/login/account_picker/screen_account_picker.js |
@@ -36,6 +36,7 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() { |
'hideUserPodCustomIcon', |
'setAuthType', |
'showEasyUnlockBubble', |
+ 'setPublicSessionDisplayName', |
'setPublicSessionKeyboardLayouts', |
], |
@@ -310,6 +311,15 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() { |
}, |
/** |
+ * Updates the display name shown on a public session pod. |
+ * @param {string} userID The user ID of the public session |
+ * @param {string} displayName The new display name |
+ */ |
+ setPublicSessionDisplayName: function(userID, displayName) { |
+ $('pod-row').setPublicSessionDisplayName(userID, displayName); |
+ }, |
+ |
+ /** |
* Updates the list of available keyboard layouts for a public session pod. |
* @param {string} userID The user ID of the public session |
* @param {!Object} list List of available keyboard layouts |