| Index: chrome/browser/resources/gaia_auth_host/authenticator.js
|
| diff --git a/chrome/browser/resources/gaia_auth_host/authenticator.js b/chrome/browser/resources/gaia_auth_host/authenticator.js
|
| index 169e35631110132fa5a640d5b87a4a1fbeb00410..55a24f76def03b64ded67f09c3da9dd0b3ff65ca 100644
|
| --- a/chrome/browser/resources/gaia_auth_host/authenticator.js
|
| +++ b/chrome/browser/resources/gaia_auth_host/authenticator.js
|
| @@ -32,7 +32,6 @@
|
| var SERVICE_ID = 'chromeoslogin';
|
| var EMBEDDED_SETUP_CHROMEOS_ENDPOINT = 'embedded/setup/chromeos';
|
| var SAML_REDIRECTION_PATH = 'samlredirect';
|
| - var BLANK_PAGE_URL = 'about:blank';
|
|
|
| /**
|
| * The source URL parameter for the constrained signin flow.
|
| @@ -197,7 +196,7 @@
|
| * Reinitializes authentication parameters so that a failed login attempt
|
| * would not result in an infinite loop.
|
| */
|
| - Authenticator.prototype.resetStates = function() {
|
| + Authenticator.prototype.resetStates_ = function() {
|
| this.isLoaded_ = false;
|
| this.email_ = null;
|
| this.gaiaId_ = null;
|
| @@ -217,20 +216,13 @@
|
| };
|
|
|
| /**
|
| - * Resets the webview to the blank page.
|
| - */
|
| - Authenticator.prototype.resetWebview = function() {
|
| - this.webview_.src = BLANK_PAGE_URL;
|
| - };
|
| -
|
| - /**
|
| * Loads the authenticator component with the given parameters.
|
| * @param {AuthMode} authMode Authorization mode.
|
| * @param {Object} data Parameters for the authorization flow.
|
| */
|
| Authenticator.prototype.load = function(authMode, data) {
|
| this.authMode = authMode;
|
| - this.resetStates();
|
| + this.resetStates_();
|
| // gaiaUrl parameter is used for testing. Once defined, it is never changed.
|
| this.idpOrigin_ = data.gaiaUrl || IDP_ORIGIN;
|
| this.continueUrl_ = data.continueUrl || CONTINUE_URL;
|
| @@ -278,7 +270,7 @@
|
| * Reloads the authenticator component.
|
| */
|
| Authenticator.prototype.reload = function() {
|
| - this.resetStates();
|
| + this.resetStates_();
|
| this.webview_.src = this.reloadUrl_;
|
| this.isLoaded_ = true;
|
| };
|
| @@ -711,7 +703,7 @@
|
| gapsCookie: this.newGapsCookie_ || this.gapsCookie_ || '',
|
| }
|
| }));
|
| - this.resetStates();
|
| + this.resetStates_();
|
| };
|
|
|
| /**
|
| @@ -794,8 +786,6 @@
|
| this.fireReadyEvent_();
|
| // Focus webview after dispatching event when webview is already visible.
|
| this.webview_.focus();
|
| - } else if (currentUrl == BLANK_PAGE_URL) {
|
| - this.fireReadyEvent_();
|
| }
|
| };
|
|
|
|
|