Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5907)

Unified Diff: chrome/browser/resources/chromeos/login/screen_active_directory_password_change.js

Issue 2944703004: Run clang-format on .js files in c/b/r/chromeos (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
+ }
+ };
+ });

Powered by Google App Engine
This is Rietveld 408576698