| Index: chromeos/login/auth/cryptohome_authenticator.cc
|
| diff --git a/chromeos/login/auth/cryptohome_authenticator.cc b/chromeos/login/auth/cryptohome_authenticator.cc
|
| index 9fc700af4038cee33c1d0e7578114fc20369068c..389dd6cd84f37d4dab0a8e1be4b7efaa188fceb9 100644
|
| --- a/chromeos/login/auth/cryptohome_authenticator.cc
|
| +++ b/chromeos/login/auth/cryptohome_authenticator.cc
|
| @@ -220,12 +220,12 @@ void EnsureCryptohomeMigratedToGaiaId(
|
| }
|
| const bool already_migrated = cryptohome::GetGaiaIdMigrationStatus(
|
| attempt->user_context.GetAccountId());
|
| - const bool has_gaia_id =
|
| - !attempt->user_context.GetAccountId().GetGaiaId().empty();
|
| + const bool has_account_key =
|
| + attempt->user_context.GetAccountId().HasAccountIdKey();
|
|
|
| bool need_migration = false;
|
| if (!create_if_nonexistent && !already_migrated) {
|
| - if (has_gaia_id) {
|
| + if (has_account_key) {
|
| need_migration = true;
|
| } else {
|
| LOG(WARNING) << "Account '"
|
| @@ -248,7 +248,7 @@ void EnsureCryptohomeMigratedToGaiaId(
|
| create_if_nonexistent));
|
| return;
|
| }
|
| - if (!already_migrated && has_gaia_id) {
|
| + if (!already_migrated && has_account_key) {
|
| // Mark new users migrated.
|
| cryptohome::SetGaiaIdMigrationStatusDone(
|
| attempt->user_context.GetAccountId());
|
|
|