| Index: chrome/browser/extensions/api/identity/identity_api.cc
|
| diff --git a/chrome/browser/extensions/api/identity/identity_api.cc b/chrome/browser/extensions/api/identity/identity_api.cc
|
| index b18fe73b46ab524fddaa6a412ef27795931f5c86..3f469e812491442f2bae3385b5bd2b14589864c2 100644
|
| --- a/chrome/browser/extensions/api/identity/identity_api.cc
|
| +++ b/chrome/browser/extensions/api/identity/identity_api.cc
|
| @@ -566,6 +566,12 @@ void IdentityGetAuthTokenFunction::OnIssueAdviceSuccess(
|
| }
|
|
|
| void IdentityGetAuthTokenFunction::SigninSuccess() {
|
| + // If there was no account associated this profile before the
|
| + // sign-in, we may not have an account_id in the token_key yet.
|
| + if (token_key_->account_id.empty()) {
|
| + token_key_->account_id = GetPrimaryAccountId(GetProfile());
|
| + }
|
| +
|
| StartMintTokenFlow(IdentityMintRequestQueue::MINT_TYPE_NONINTERACTIVE);
|
| }
|
|
|
|
|