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

Unified Diff: chrome/browser/chromeos/login/supervised/supervised_user_authenticator.cc

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: chrome/browser/chromeos/login/supervised/supervised_user_authenticator.cc
diff --git a/chrome/browser/chromeos/login/supervised/supervised_user_authenticator.cc b/chrome/browser/chromeos/login/supervised/supervised_user_authenticator.cc
index 7cbad7cc30d31cb755afadbc5f7c15f5b6612938..bca16cf031bd3978e905b7ceabb3d4b9f49217e0 100644
--- a/chrome/browser/chromeos/login/supervised/supervised_user_authenticator.cc
+++ b/chrome/browser/chromeos/login/supervised/supervised_user_authenticator.cc
@@ -70,7 +70,7 @@ void Mount(SupervisedUserAuthenticator::AuthAttempt* attempt,
Key key(attempt->password);
key.Transform(Key::KEY_TYPE_SALTED_SHA256_TOP_HALF, system_salt);
const AccountId account_id = user_manager::known_user::GetAccountId(
- attempt->username, std::string() /* gaia_id */);
+ attempt->username, std::string() /* id */, AccountType::UNKNOWN);
const cryptohome::Identification cryptohome_id(account_id);
cryptohome::AsyncMethodCaller::GetInstance()->AsyncMount(
cryptohome_id, key.GetSecret(), flags,
@@ -95,7 +95,7 @@ void AddKey(SupervisedUserAuthenticator::AuthAttempt* attempt,
Key master_key(plain_text_master_key);
master_key.Transform(Key::KEY_TYPE_SALTED_SHA256_TOP_HALF, system_salt);
const AccountId account_id = user_manager::known_user::GetAccountId(
- attempt->username, std::string() /* gaia_id */);
+ attempt->username, std::string() /* id */, AccountType::UNKNOWN);
cryptohome::AsyncMethodCaller::GetInstance()->AsyncAddKey(
cryptohome::Identification(account_id), user_key.GetSecret(),
master_key.GetSecret(),

Powered by Google App Engine
This is Rietveld 408576698