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

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

Issue 1115993002: ChromeOS Gaia: SAML password confirmation dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 7 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_password_changed.js
diff --git a/chrome/browser/resources/chromeos/login/screen_password_changed.js b/chrome/browser/resources/chromeos/login/screen_password_changed.js
index 0bb4f3ab440f5677dfe20c1dd892efa512be2b8a..8001a670d2397e6f0e31b445735c0d741ebe314c 100644
--- a/chrome/browser/resources/chromeos/login/screen_password_changed.js
+++ b/chrome/browser/resources/chromeos/login/screen_password_changed.js
@@ -134,10 +134,6 @@ login.createScreen('PasswordChangedScreen', 'password-changed', function() {
value ? 'add' : 'remove']('disabled');
},
- get isNewGaiaFlow() {
- return document.querySelector('.new-gaia-flow') != undefined;
- },
-
/**
* Cancels password migration and drops the user back to the login screen.
*/
@@ -159,7 +155,7 @@ login.createScreen('PasswordChangedScreen', 'password-changed', function() {
},
onAfterShow: function(data) {
- if (this.isNewGaiaFlow)
+ if (Oobe.isNewGaiaFlow())
$('gaia-password-changed').focus();
},
@@ -183,7 +179,7 @@ login.createScreen('PasswordChangedScreen', 'password-changed', function() {
* @param {boolean} showError Whether to show the incorrect password error.
*/
show: function(showError, email) {
- if (this.isNewGaiaFlow) {
+ if (Oobe.isNewGaiaFlow()) {
$('password-changed-contents').hidden = true;
$('password-changed-controls').hidden = true;
var gaiaPasswordChanged = $('gaia-password-changed');
@@ -206,7 +202,7 @@ login.createScreen('PasswordChangedScreen', 'password-changed', function() {
Oobe.getInstance().headerHidden = false;
Oobe.showScreen({id: SCREEN_PASSWORD_CHANGED});
$('login-header-bar').signinUIState = SIGNIN_UI_STATE.PASSWORD_CHANGED;
- if (!this.isNewGaiaFlow)
+ if (!Oobe.isNewGaiaFlow())
$('password-changed-ok-button').disabled = true;
}
};

Powered by Google App Engine
This is Rietveld 408576698