| Index: chromeos/login/auth/extended_authenticator_impl.cc
|
| diff --git a/chromeos/login/auth/extended_authenticator_impl.cc b/chromeos/login/auth/extended_authenticator_impl.cc
|
| index 88ec3cf509cfb95fb27d2c83e422e862ec907685..0aa10e59b76fac6235366d3ec576feba59c0677f 100644
|
| --- a/chromeos/login/auth/extended_authenticator_impl.cc
|
| +++ b/chromeos/login/auth/extended_authenticator_impl.cc
|
| @@ -17,7 +17,6 @@
|
| #include "chromeos/login/auth/key.h"
|
| #include "chromeos/login/auth/user_context.h"
|
| #include "chromeos/login_event_recorder.h"
|
| -#include "components/signin/core/account_id/account_id.h"
|
| #include "crypto/sha2.h"
|
| #include "google_apis/gaia/gaia_auth_util.h"
|
|
|
| @@ -92,7 +91,7 @@
|
| for (size_t i = 0; i < keys.size(); i++) {
|
| mount.create_keys.push_back(keys[i]);
|
| }
|
| - UserContext context(AccountId::FromUserEmail(user_id));
|
| + UserContext context(user_id);
|
| Key key(keys.front().secret);
|
| key.SetLabel(keys.front().label);
|
| context.SetKey(key);
|
| @@ -187,8 +186,7 @@
|
| const UserContext& user_context) {
|
| RecordStartMarker("MountEx");
|
|
|
| - const std::string canonicalized =
|
| - gaia::CanonicalizeEmail(user_context.GetAccountId().GetUserEmail());
|
| + std::string canonicalized = gaia::CanonicalizeEmail(user_context.GetUserID());
|
| cryptohome::Identification id(canonicalized);
|
| const Key* const key = user_context.GetKey();
|
| cryptohome::Authorization auth(key->GetSecret(), key->GetLabel());
|
| @@ -210,8 +208,7 @@
|
| const UserContext& user_context) {
|
| RecordStartMarker("CheckKeyEx");
|
|
|
| - const std::string canonicalized =
|
| - gaia::CanonicalizeEmail(user_context.GetAccountId().GetUserEmail());
|
| + std::string canonicalized = gaia::CanonicalizeEmail(user_context.GetUserID());
|
| cryptohome::Identification id(canonicalized);
|
| const Key* const key = user_context.GetKey();
|
| cryptohome::Authorization auth(key->GetSecret(), key->GetLabel());
|
| @@ -232,8 +229,7 @@
|
| const UserContext& user_context) {
|
| RecordStartMarker("AddKeyEx");
|
|
|
| - const std::string canonicalized =
|
| - gaia::CanonicalizeEmail(user_context.GetAccountId().GetUserEmail());
|
| + std::string canonicalized = gaia::CanonicalizeEmail(user_context.GetUserID());
|
| cryptohome::Identification id(canonicalized);
|
| const Key* const auth_key = user_context.GetKey();
|
| cryptohome::Authorization auth(auth_key->GetSecret(), auth_key->GetLabel());
|
| @@ -257,8 +253,7 @@
|
| const UserContext& user_context) {
|
| RecordStartMarker("UpdateKeyAuthorized");
|
|
|
| - const std::string canonicalized =
|
| - gaia::CanonicalizeEmail(user_context.GetAccountId().GetUserEmail());
|
| + std::string canonicalized = gaia::CanonicalizeEmail(user_context.GetUserID());
|
| cryptohome::Identification id(canonicalized);
|
| const Key* const auth_key = user_context.GetKey();
|
| cryptohome::Authorization auth(auth_key->GetSecret(), auth_key->GetLabel());
|
| @@ -280,8 +275,7 @@
|
| const UserContext& user_context) {
|
| RecordStartMarker("RemoveKeyEx");
|
|
|
| - const std::string canonicalized =
|
| - gaia::CanonicalizeEmail(user_context.GetAccountId().GetUserEmail());
|
| + std::string canonicalized = gaia::CanonicalizeEmail(user_context.GetUserID());
|
| cryptohome::Identification id(canonicalized);
|
| const Key* const auth_key = user_context.GetKey();
|
| cryptohome::Authorization auth(auth_key->GetSecret(), auth_key->GetLabel());
|
|
|