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 b053cacee2be72fd2063edac63101eedd6f6be4a..757a55f38de1a2572901db495bde0c76805ff33c 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 |