| Index: chrome/browser/resources/chromeos/login/user_pod_row.js
|
| diff --git a/chrome/browser/resources/chromeos/login/user_pod_row.js b/chrome/browser/resources/chromeos/login/user_pod_row.js
|
| index 1755bdc94fb40cb2b034292f56e6037cc2fb64dd..31b826426d7de195d047f7fdd1252fa91367ae5b 100644
|
| --- a/chrome/browser/resources/chromeos/login/user_pod_row.js
|
| +++ b/chrome/browser/resources/chromeos/login/user_pod_row.js
|
| @@ -175,8 +175,9 @@ cr.define('login', function() {
|
| set user(userDict) {
|
| this.user_ = userDict;
|
|
|
| + this.updateUserImage();
|
| +
|
| this.nameElement.textContent = userDict.name;
|
| - this.imageElement.src = userDict.imageUrl;
|
| this.removeUserButtonElement.hidden = !userDict.canRemove;
|
| this.signedInIndicatorElement.hidden = !userDict.signedIn;
|
|
|
| @@ -263,6 +264,16 @@ cr.define('login', function() {
|
| },
|
|
|
| /**
|
| + * Updates the image element of the user.
|
| + */
|
| + updateUserImage: function() {
|
| + this.imageElement.src = this.isGuest ?
|
| + 'chrome://theme/IDR_LOGIN_GUEST' :
|
| + 'chrome://userimage/' + this.user.emailAddress +
|
| + '?id=' + (new Date()).getTime();
|
| + },
|
| +
|
| + /**
|
| * Focuses on input element.
|
| */
|
| focusInput: function() {
|
| @@ -600,6 +611,18 @@ cr.define('login', function() {
|
| },
|
|
|
| /**
|
| + * Updates current image of a user.
|
| + * @param {string} email Email of the user for which to update the image.
|
| + * @public
|
| + */
|
| + updateUserImage: function(email) {
|
| + for (var i = 0; i < this.pods.length; ++i) {
|
| + if (this.pods[i].user.emailAddress == email)
|
| + this.pods[i].updateUserImage();
|
| + }
|
| + },
|
| +
|
| + /**
|
| * Handler of click event.
|
| * @param {Event} e Click Event object.
|
| * @private
|
|
|