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

Unified Diff: chromeos/tpm/tpm_token_info_getter.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: Fixed unit tests. 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
« no previous file with comments | « chromeos/login/auth/user_context.cc ('k') | chromeos/tpm/tpm_token_info_getter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/tpm/tpm_token_info_getter.h
diff --git a/chromeos/tpm/tpm_token_info_getter.h b/chromeos/tpm/tpm_token_info_getter.h
index 1612dc5f5294d2350043b70e3683006a86a1f3ee..964c831916446b2551bdbb7bd20f07f0c34e640f 100644
--- a/chromeos/tpm/tpm_token_info_getter.h
+++ b/chromeos/tpm/tpm_token_info_getter.h
@@ -14,6 +14,7 @@
#include "base/time/time.h"
#include "chromeos/chromeos_export.h"
#include "chromeos/dbus/dbus_method_call_status.h"
+#include "components/signin/core/account_id/account_id.h"
namespace base {
class TaskRunner;
@@ -47,7 +48,7 @@ class CHROMEOS_EXPORT TPMTokenInfoGetter {
// Factory method for TPMTokenInfoGetter for a user token.
static scoped_ptr<TPMTokenInfoGetter> CreateForUserToken(
- const std::string& user_id,
+ const AccountId& account_id,
CryptohomeClient* cryptohome_client,
const scoped_refptr<base::TaskRunner>& delayed_task_runner);
@@ -80,7 +81,7 @@ class CHROMEOS_EXPORT TPMTokenInfoGetter {
TPMTokenInfoGetter(
Type type,
- const std::string& user_id,
+ const AccountId& account_id,
CryptohomeClient* cryptohome_client,
const scoped_refptr<base::TaskRunner>& delayed_task_runner);
@@ -107,8 +108,9 @@ class CHROMEOS_EXPORT TPMTokenInfoGetter {
Type type_;
State state_;
- // The user id associated with the TPMTokenInfoGetter. Empty for system token.
- std::string user_id_;
+ // The account id associated with the TPMTokenInfoGetter. Empty for system
+ // token.
+ AccountId account_id_;
TPMTokenInfoCallback callback_;
« no previous file with comments | « chromeos/login/auth/user_context.cc ('k') | chromeos/tpm/tpm_token_info_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698