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

Unified Diff: chrome/browser/resources/gaia_auth_host/authenticator.js

Issue 789353004: Host Chrome OS GAIA signin page in webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove changes from https://codereview.chromium.org/812513003 Created 6 years 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/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 baf6d8e1a0667a4ea8982565d5d20972e8a03c64..15f5c4c01cc47aecef38447035057cf4415e65f6 100644
--- a/chrome/browser/resources/gaia_auth_host/authenticator.js
+++ b/chrome/browser/resources/gaia_auth_host/authenticator.js
@@ -19,6 +19,7 @@ cr.define('cr.login', function() {
var SIGN_IN_HEADER = 'google-accounts-signin';
var EMBEDDED_FORM_HEADER = 'google-accounts-embedded';
var SAML_HEADER = 'google-accounts-saml';
+ var SERVICE_ID = 'chromeoslogin';
/**
* The source URL parameter for the constrained signin flow.
@@ -166,7 +167,7 @@ cr.define('cr.login', function() {
var url = this.idpOrigin_ + (data.gaiaPath || IDP_PATH);
url = appendParam(url, 'continue', this.continueUrl_);
- url = appendParam(url, 'service', data.service);
+ url = appendParam(url, 'service', data.service || SERVICE_ID);
if (data.hl)
url = appendParam(url, 'hl', data.hl);
if (data.email)
@@ -288,7 +289,7 @@ cr.define('cr.login', function() {
this.listener_.onSuccess({email: this.email_,
gaiaId: this.gaiaId_,
- password: this.password_,
+ password: this.password_ || '',
usingSAML: this.authFlow_ == AuthFlow.SAML,
chooseWhatToSync: this.chooseWhatToSync_,
skipForNow: this.skipForNow_,

Powered by Google App Engine
This is Rietveld 408576698