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

Unified Diff: chrome/browser/resources/gaia_auth/background.js

Issue 473153002: Inline sign in extracts gaia id from HTTP header and seeds account tracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 4 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/gaia_auth/background.js
diff --git a/chrome/browser/resources/gaia_auth/background.js b/chrome/browser/resources/gaia_auth/background.js
index 50c72243f18be0bf8e38a7de499dfa1305d280fb..6286aab86fa3c566c7130a798bc42a28be729689 100644
--- a/chrome/browser/resources/gaia_auth/background.js
+++ b/chrome/browser/resources/gaia_auth/background.js
@@ -120,6 +120,10 @@ BackgroundBridge.prototype = {
// 'google-accounts-signin'.
email_: null,
+ // Gaia Id of the newly authenticated user based on the gaia response
+ // header 'google-accounts-signin'.
+ gaiaId_: null,
+
// Session index of the newly authenticated user based on the gaia response
// header 'google-accounts-signin'.
sessionIndex_: null,
@@ -221,6 +225,7 @@ BackgroundBridge.prototype = {
msg = {
'name': 'completeLogin',
'email': this.email_,
+ 'gaiaId': this.gaiaId_,
'password': passwords[0],
'sessionIndex': this.sessionIndex_,
'skipForNow': skipForNow
@@ -280,6 +285,7 @@ BackgroundBridge.prototype = {
});
// Remove "" around.
this.email_ = signinDetails['email'].slice(1, -1);
+ this.gaiaId_ = signinDetails['obfuscatedid'].slice(1, -1);
this.sessionIndex_ = signinDetails['sessionindex'];
break;
}
« no previous file with comments | « no previous file | chrome/browser/resources/gaia_auth/main.js » ('j') | chrome/browser/ui/webui/signin/inline_login_handler_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698