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

Unified Diff: components/signin/core/browser/account_tracker_service.h

Issue 677703002: Revert of Revert of 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: 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
« no previous file with comments | « chromeos/login/auth/user_context.cc ('k') | components/signin/core/browser/account_tracker_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/browser/account_tracker_service.h
diff --git a/components/signin/core/browser/account_tracker_service.h b/components/signin/core/browser/account_tracker_service.h
index a6f403e9ea26f4705ac7e753e93a53552ed41da0..c65ed01093408ab87a97703970b25d52234b638f 100644
--- a/components/signin/core/browser/account_tracker_service.h
+++ b/components/signin/core/browser/account_tracker_service.h
@@ -79,6 +79,18 @@
// there are still unfininshed fetchers.
virtual bool IsAllUserInfoFetched() const;
+ // Picks the correct account_id for the specified account depending on the
+ // migration state.
+ std::string PickAccountIdForAccount(const std::string& gaia,
+ const std::string& email);
+ static std::string PickAccountIdForAccount(PrefService* pref_service,
+ const std::string& gaia,
+ const std::string& email);
+
+ // Seeds the account whose account_id is given by PickAccountIdForAccount()
+ // with its corresponding gaia id and email address.
+ void SeedAccountInfo(const std::string& gaia, const std::string& email);
+
AccountIdMigrationState GetMigrationState();
static AccountIdMigrationState GetMigrationState(PrefService* pref_service);
« no previous file with comments | « chromeos/login/auth/user_context.cc ('k') | components/signin/core/browser/account_tracker_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698