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

Unified Diff: trunk/src/chrome/browser/resources/gaia_auth/main.js

Issue 137133007: Revert 246674 "Indicate which authentication flow was used in Us..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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: trunk/src/chrome/browser/resources/gaia_auth/main.js
===================================================================
--- trunk/src/chrome/browser/resources/gaia_auth/main.js (revision 246711)
+++ trunk/src/chrome/browser/resources/gaia_auth/main.js (working copy)
@@ -182,12 +182,11 @@
}
},
- completeLogin: function() {
+ completeLogin: function(username, password) {
var msg = {
'method': 'completeLogin',
- 'email': this.email_,
- 'password': this.password_,
- 'usingSAML': this.isSAMLFlow_
+ 'email': username,
+ 'password': password
};
window.parent.postMessage(msg, this.parentPage_);
if (this.samlSupportChannel_)
@@ -278,7 +277,7 @@
onConfirmLogin_: function() {
if (!this.isSAMLFlow_) {
- this.completeLogin();
+ this.completeLogin(this.email_, this.password_);
return;
}
@@ -308,7 +307,7 @@
// SAML login is complete when the user's e-mail address has been retrieved
// from GAIA and the user has successfully confirmed the password.
if (this.email_ !== null && this.password_ !== null)
- this.completeLogin();
+ this.completeLogin(this.email_, this.password_);
},
onVerifyConfirmedPassword_: function(password) {

Powered by Google App Engine
This is Rietveld 408576698