| Index: chrome/browser/resources/chromeos/login/screen_active_directory_password_change.js
|
| diff --git a/chrome/browser/resources/chromeos/login/screen_active_directory_password_change.js b/chrome/browser/resources/chromeos/login/screen_active_directory_password_change.js
|
| index 391efad2c4967859135fad990f9857d8d1757cb2..94a687d33cb405648f9898a6fde0cfb33e8c5e1b 100644
|
| --- a/chrome/browser/resources/chromeos/login/screen_active_directory_password_change.js
|
| +++ b/chrome/browser/resources/chromeos/login/screen_active_directory_password_change.js
|
| @@ -5,48 +5,46 @@
|
| /**
|
| * @fileoverview Active Directory password change screen implementation.
|
| */
|
| -login.createScreen('ActiveDirectoryPasswordChangeScreen', 'ad-password-change',
|
| - function() {
|
| - return {
|
| - EXTERNAL_API: [
|
| - 'show'
|
| - ],
|
| +login.createScreen(
|
| + 'ActiveDirectoryPasswordChangeScreen', 'ad-password-change', function() {
|
| + return {
|
| + EXTERNAL_API: ['show'],
|
|
|
| - adPasswordChanged_: null,
|
| + adPasswordChanged_: null,
|
|
|
| - /** @override */
|
| - decorate: function() {
|
| - this.adPasswordChanged_ = $('active-directory-password-change');
|
| - this.adPasswordChanged_.addEventListener('cancel',
|
| - this.cancel.bind(this));
|
| + /** @override */
|
| + decorate: function() {
|
| + this.adPasswordChanged_ = $('active-directory-password-change');
|
| + this.adPasswordChanged_.addEventListener(
|
| + 'cancel', this.cancel.bind(this));
|
|
|
| - this.adPasswordChanged_.addEventListener('authCompleted',
|
| - function(e) {
|
| - chrome.send('completeAdPasswordChange',
|
| - [e.detail.username,
|
| - e.detail.oldPassword,
|
| - e.detail.newPassword]);
|
| - });
|
| - },
|
| + this.adPasswordChanged_.addEventListener(
|
| + 'authCompleted', function(e) {
|
| + chrome.send('completeAdPasswordChange', [
|
| + e.detail.username, e.detail.oldPassword, e.detail.newPassword
|
| + ]);
|
| + });
|
| + },
|
|
|
| - /**
|
| - * Cancels password changing and drops the user back to the login screen.
|
| - */
|
| - cancel: function() {
|
| - Oobe.showUserPods();
|
| - },
|
| + /**
|
| + * Cancels password changing and drops the user back to the login
|
| + * screen.
|
| + */
|
| + cancel: function() {
|
| + Oobe.showUserPods();
|
| + },
|
|
|
| - /**
|
| - * Shows password changed screen.
|
| - * @param {string} username Name of user that should change the password.
|
| - */
|
| - show: function(username) {
|
| - // Active Directory password change screen is similar to Active Directory
|
| - // login screen. So we restore bottom bar controls.
|
| - Oobe.getInstance().headerHidden = false;
|
| - Oobe.showScreen({id: SCREEN_ACTIVE_DIRECTORY_PASSWORD_CHANGE});
|
| - this.adPasswordChanged_.reset();
|
| - this.adPasswordChanged_.username = username;
|
| - }
|
| - };
|
| -});
|
| + /**
|
| + * Shows password changed screen.
|
| + * @param {string} username Name of user that should change the password.
|
| + */
|
| + show: function(username) {
|
| + // Active Directory password change screen is similar to Active
|
| + // Directory login screen. So we restore bottom bar controls.
|
| + Oobe.getInstance().headerHidden = false;
|
| + Oobe.showScreen({id: SCREEN_ACTIVE_DIRECTORY_PASSWORD_CHANGE});
|
| + this.adPasswordChanged_.reset();
|
| + this.adPasswordChanged_.username = username;
|
| + }
|
| + };
|
| + });
|
|
|