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

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
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;
}
« no previous file with comments | « no previous file | chrome/common/net/gaia/oauth2_access_token_fetcher.cc » ('j') | chrome/common/net/gaia/oauth2_mint_token_flow.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698