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

Unified Diff: components/user_manager/known_user.h

Issue 2529103002: Add account_type into AccountId (Closed)
Patch Set: Created 4 years, 1 month 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: components/user_manager/known_user.h
diff --git a/components/user_manager/known_user.h b/components/user_manager/known_user.h
index c0dbd9cdfc89dcb6a43078744f15f3abfc7a0851..acc1d3700dfa21d7d5cc7908b4c8a15b3b970fd6 100644
--- a/components/user_manager/known_user.h
+++ b/components/user_manager/known_user.h
@@ -74,7 +74,8 @@ std::vector<AccountId> USER_MANAGER_EXPORT GetKnownAccountIds();
// gaia_id.
// This is a temporary call while migrating to AccountId.
AccountId USER_MANAGER_EXPORT GetAccountId(const std::string& user_email,
- const std::string& gaia_id);
+ const std::string& gaia_id,
+ const std::string& account_type);
// Returns true if |subsystem| data was migrated to GaiaId for the |account_id|.
bool USER_MANAGER_EXPORT GetGaiaIdMigrationStatus(const AccountId& account_id,
@@ -91,6 +92,9 @@ SetGaiaIdMigrationStatusDone(const AccountId& account_id,
void USER_MANAGER_EXPORT UpdateGaiaID(const AccountId& account_id,
const std::string& gaia_id);
+// Updates |account_id.account_type_| for user with |account_id|.
+void USER_MANAGER_EXPORT UpdateAccountType(const AccountId& account_id);
+
// Find GAIA ID for user with |account_id|, fill in |out_value| and return
// true
// if GAIA ID was found or false otherwise.

Powered by Google App Engine
This is Rietveld 408576698