Index: chrome/browser/extensions/api/identity/identity_api.cc |
=================================================================== |
--- chrome/browser/extensions/api/identity/identity_api.cc (revision 130985) |
+++ chrome/browser/extensions/api/identity/identity_api.cc (working copy) |
@@ -44,9 +44,16 @@ |
TokenService* token_service = TokenServiceFactory::GetForProfile(profile()); |
flow_.reset( |
- new OAuth2MintTokenFlow(profile()->GetRequestContext(), this)); |
- flow_->Start(token_service->GetOAuth2LoginRefreshToken(), |
- extension->id(), oauth2_info.client_id, oauth2_info.scopes); |
+ new OAuth2MintTokenFlow( |
asargent_no_longer_on_chrome
2012/04/10 22:47:25
nit: this could go on the preceding line just afte
Munjal (Google)
2012/04/10 23:15:35
Done.
|
+ profile()->GetRequestContext(), |
+ this, |
+ OAuth2MintTokenFlow::Parameters( |
+ token_service->GetOAuth2LoginRefreshToken(), |
+ extension->id(), |
+ oauth2_info.client_id, |
+ oauth2_info.scopes, |
+ OAuth2MintTokenFlow::MODE_MINT_TOKEN_FORCE))); |
+ flow_->Start(); |
return true; |
} |