Index: chrome/browser/signin/easy_unlock_service_regular.cc |
diff --git a/chrome/browser/signin/easy_unlock_service_regular.cc b/chrome/browser/signin/easy_unlock_service_regular.cc |
index cbee08b6741bc32c93aa461d013a07ff396db183..322833802c2218e9b543c4c7cabdf6d8257b955f 100644 |
--- a/chrome/browser/signin/easy_unlock_service_regular.cc |
+++ b/chrome/browser/signin/easy_unlock_service_regular.cc |
@@ -163,11 +163,13 @@ AccountId EasyUnlockServiceRegular::GetAccountId() const { |
// |profile| has to be a signed-in profile with SigninManager already |
// created. Otherwise, just crash to collect stack. |
DCHECK(signin_manager); |
- const std::string user_email = |
- signin_manager->GetAuthenticatedAccountInfo().email; |
- return user_email.empty() |
+ const AccountInfo account_info = |
+ signin_manager->GetAuthenticatedAccountInfo(); |
+ return account_info.email.empty() |
? EmptyAccountId() |
- : AccountId::FromUserEmail(gaia::CanonicalizeEmail(user_email)); |
+ : AccountId::FromUserEmailGaiaId( |
+ gaia::CanonicalizeEmail(account_info.email), |
+ account_info.gaia); |
} |
void EasyUnlockServiceRegular::LaunchSetup() { |