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

Unified Diff: google_apis/gaia/fake_gaia.cc

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: Fix one unit test, progress on second Created 6 years, 2 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: google_apis/gaia/fake_gaia.cc
diff --git a/google_apis/gaia/fake_gaia.cc b/google_apis/gaia/fake_gaia.cc
index 7ba1c585f4d1cde1a527f9b502e20ac121478341..aba65a3af8234707b27c7baa6cd17b1400e16999 100644
--- a/google_apis/gaia/fake_gaia.cc
+++ b/google_apis/gaia/fake_gaia.cc
@@ -142,6 +142,7 @@ FakeGaia::FakeGaia() {
FakeGaia::~FakeGaia() {}
void FakeGaia::SetFakeMergeSessionParams(
+ const std::string& gaia_id,
const std::string& email,
const std::string& auth_sid_cookie,
const std::string& auth_lsid_cookie) {
@@ -155,6 +156,7 @@ void FakeGaia::SetFakeMergeSessionParams(
params.session_sid_cookie = kTestSessionSIDCookie;
params.session_lsid_cookie = kTestSessionLSIDCookie;
params.email = email;
+ params.gaia_id = gaia_id;
SetMergeSessionParams(params);
}
@@ -432,7 +434,9 @@ void FakeGaia::HandleServiceLoginAuth(const HttpRequest& request,
http_response->set_code(net::HTTP_TEMPORARY_REDIRECT);
http_response->AddCustomHeader("Location", redirect_url);
http_response->AddCustomHeader("google-accounts-signin",
bartfab (slow) 2014/10/17 09:54:56 This line is actually wrong - and was wrong before
Roger Tawa OOO till Jul 10th 2014/10/20 16:04:01 Done.
- base::StringPrintf("email=\"%s\", sessionindex=0", email.c_str()));
+ base::StringPrintf(
+ "email=\"%s\", obfuscatedid=\"%s\", sessionindex=0",
+ email.c_str(), merge_session_params_.gaia_id.c_str()));
bartfab (slow) 2014/10/17 09:54:56 We have tests that set up multiple accounts and ve
Roger Tawa OOO till Jul 10th 2014/10/20 16:04:01 Not sure you can do that, or that it's needed. To
}
void FakeGaia::HandleSSO(const HttpRequest& request,

Powered by Google App Engine
This is Rietveld 408576698