| Index: ui/login/account_picker/user_pod_row.js
|
| diff --git a/ui/login/account_picker/user_pod_row.js b/ui/login/account_picker/user_pod_row.js
|
| index f1a435b85cd49773ea3287678d5aa37057883119..494c58f389f5863c16945e62d8185aee218a1967 100644
|
| --- a/ui/login/account_picker/user_pod_row.js
|
| +++ b/ui/login/account_picker/user_pod_row.js
|
| @@ -1162,6 +1162,15 @@ cr.define('login', function() {
|
| },
|
|
|
| /**
|
| + * Updates the display name shown on the pod.
|
| + * @param {string} displayName The new display name
|
| + */
|
| + setDisplayName: function(displayName) {
|
| + this.user_.displayName = displayName;
|
| + this.update();
|
| + },
|
| +
|
| + /**
|
| * Handle mouse and keyboard events for the learn more button. Triggering
|
| * the button causes information about public sessions to be shown.
|
| * @param {Event} event Mouse or keyboard event.
|
| @@ -1842,6 +1851,17 @@ cr.define('login', 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) {
|
| + var pod = this.getPodWithUsername_(userID);
|
| + if (pod != null)
|
| + pod.setDisplayName(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
|
|
|