/** @override */
update: function() {
- // TODO(noms): Use the actual profile avatar for local profiles once the
- // new, non-pixellated avatars are available.
- this.imageElement.src = this.user.emailAddress == '' ?
- 'chrome://theme/IDR_USER_MANAGER_DEFAULT_AVATAR' :
- this.user.userImage;
+ this.imageElement.src = this.user.userImage;
this.nameElement.textContent = this.user.displayName;
var isLockedUser = this.user.needsSignin;
this.passwordElement.hidden = !isLockedUser;
this.nameElement.hidden = isLockedUser;
+ if (this.isAuthTypeUserClick) {
+ this.passwordLabelElement.textContent = this.authValue;
+ this.customButtonElement.tabIndex = -1;
+ }
+
UserPod.prototype.updateActionBoxArea.call(this);
},
// just activate the pod and show the password field.
if (!this.user.needsSignin && !this.isActionBoxMenuActive)
this.activate(e);
+
+ if (this.isAuthTypeUserClick)
+ chrome.send('attemptUnlock', [this.user.emailAddress]);
},
/** @override */
focusedPod.reset(true);
// Notify screen that it is ready.
screen.onShow();
- if (!focusedPod.user.isApp && self.focusedPod_ == focusedPod)
- chrome.send('loadWallpaper', [focusedPod.user.username]);
});
// Guard timer for 1 second -- it would conver all possible animations.
ensureTransitionEndEvent(focusedPod, 1000);