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

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

Issue 10012051: Add a mode to OAuth2MintTokenFlow that fetches the messages to show to the user. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 months 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
« no previous file with comments | « no previous file | chrome/common/net/gaia/oauth2_access_token_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
@@ -43,10 +43,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);
+ flow_.reset(new OAuth2MintTokenFlow(
+ 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;
}
« no previous file with comments | « no previous file | chrome/common/net/gaia/oauth2_access_token_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698