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

Unified Diff: components/user_manager/known_user.h

Issue 2529103002: Add account_type into AccountId (Closed)
Patch Set: Fix MultiUserWindowManagerChromeOSTest.* Created 4 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: components/user_manager/known_user.h
diff --git a/components/user_manager/known_user.h b/components/user_manager/known_user.h
index c0dbd9cdfc89dcb6a43078744f15f3abfc7a0851..69e40f930b789a8c5f8b1e3ebab5aa623429a68c 100644
--- a/components/user_manager/known_user.h
+++ b/components/user_manager/known_user.h
@@ -11,6 +11,7 @@
#include "components/user_manager/user_manager_export.h"
class AccountId;
+enum class AccountType;
class PrefRegistrySimple;
namespace base {
@@ -74,7 +75,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 AccountType& 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 +93,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