Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4904)

Unified Diff: chrome/browser/extensions/api/identity/identity_signin_flow.cc

Issue 33173005: Correctly deal with tokens for supervised users in ProfileOAuth2TokenService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698