Index: chrome/browser/extensions/api/identity/identity_signin_flow.cc |
diff --git a/chrome/browser/extensions/api/identity/identity_signin_flow.cc b/chrome/browser/extensions/api/identity/identity_signin_flow.cc |
index 0367fc934631936faac8fd8d0f4bc53d9cbf91c0..a0aa85e88920b78076f685071abff35dcb032b83 100644 |
--- a/chrome/browser/extensions/api/identity/identity_signin_flow.cc |
+++ b/chrome/browser/extensions/api/identity/identity_signin_flow.cc |
@@ -43,7 +43,10 @@ void IdentitySigninFlow::Start() { |
void IdentitySigninFlow::OnRefreshTokenAvailable( |
const std::string& account_id) { |
- delegate_->SigninSuccess(); |
+ if (ProfileOAuth2TokenServiceFactory::GetForProfile(profile_)-> |
+ GetPrimaryAccountId() == account_id) { |
+ delegate_->SigninSuccess(); |
+ } |
} |
} // namespace extensions |