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

Unified Diff: components/user_manager/known_user.h

Issue 1693383003: ChromeOS cryptohome should be able to use gaia id as user identifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 4 years, 10 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: components/user_manager/known_user.h
diff --git a/components/user_manager/known_user.h b/components/user_manager/known_user.h
index aa02b2fc6373bcf355b81fd9c0b78b6eab3b6a9f..d89f877c0edd70dff465192bfdf7af84ce54adae 100644
--- a/components/user_manager/known_user.h
+++ b/components/user_manager/known_user.h
@@ -6,6 +6,7 @@
#define COMPONENTS_USER_MANAGER_KNOWN_USER_H_
#include <string>
+#include <vector>
#include "components/user_manager/user_manager_export.h"
@@ -68,12 +69,20 @@ void USER_MANAGER_EXPORT SetIntegerPref(const AccountId& account_id,
const std::string& path,
const int in_value);
+// Returns the list of known AccountIds.
+std::vector<AccountId> USER_MANAGER_EXPORT GetKnownAccountIds();
+
// This call forms full account id of a known user by email and (optionally)
// 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);
+// This call first tries to deserialize AccountId. If it fails, it calls
+// GetAccountId() with empty gaia id.
+AccountId USER_MANAGER_EXPORT
+MayBeDeserializeAccountId(const std::string& maybe_serialized_account_id);
+
// Returns true if |subsystem| data was migrated to GaiaId for the |account_id|.
bool USER_MANAGER_EXPORT GetGaiaIdMigrationStatus(const AccountId& account_id,
const std::string& subsystem);

Powered by Google App Engine
This is Rietveld 408576698