summaryrefslogtreecommitdiffstats
path: root/google_apis/gaia/oauth2_mint_token_flow.cc
diff options
context:
space:
mode:
authorfgorski@chromium.org <fgorski@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-17 04:07:01 +0000
committerfgorski@chromium.org <fgorski@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-17 04:07:01 +0000
commit4f3fb358598acb090c088ac2a9a4c31f60b5778e (patch)
tree769117f56eecde2b6c440e8bb14c1c37a656bf05 /google_apis/gaia/oauth2_mint_token_flow.cc
parentc129874dc579801d403c521fe0ebe38fbc1cf2f2 (diff)
downloadchromium_src-4f3fb358598acb090c088ac2a9a4c31f60b5778e.zip
chromium_src-4f3fb358598acb090c088ac2a9a4c31f60b5778e.tar.gz
chromium_src-4f3fb358598acb090c088ac2a9a4c31f60b5778e.tar.bz2
Updates to the experimental/identity API to remove dependency on TokenService.
* Updating OAuth2MintTokenFlow to use access_token instead of refresh_token * Updating Experimental Identity API and Identity API to fetch access_token for GAIA from ProfileOAuth2TokenService and use that instead of a refresh token * Updating IdentityAPI to implementOAuth2TokenService::Observer, to clear errors properly when user signs in * Updating IdentitySigninFlow to remove dependency on TokenService and instead implement OAuth2TokenService::Observer * Updating and adding tests for Identity API * Updating ExtensionInstallPrompt to invoke OAuth2MintTokenFlow using the access_token instead of refresh_token BUG=243737 Review URL: https://chromiumcodereview.appspot.com/18755006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211923 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_apis/gaia/oauth2_mint_token_flow.cc')
-rw-r--r--google_apis/gaia/oauth2_mint_token_flow.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/google_apis/gaia/oauth2_mint_token_flow.cc b/google_apis/gaia/oauth2_mint_token_flow.cc
index 0fae02e..436313b 100644
--- a/google_apis/gaia/oauth2_mint_token_flow.cc
+++ b/google_apis/gaia/oauth2_mint_token_flow.cc
@@ -99,12 +99,12 @@ bool IssueAdviceInfoEntry::operator ==(const IssueAdviceInfoEntry& rhs) const {
OAuth2MintTokenFlow::Parameters::Parameters() : mode(MODE_ISSUE_ADVICE) {}
OAuth2MintTokenFlow::Parameters::Parameters(
- const std::string& rt,
+ const std::string& at,
const std::string& eid,
const std::string& cid,
const std::vector<std::string>& scopes_arg,
Mode mode_arg)
- : login_refresh_token(rt),
+ : access_token(at),
extension_id(eid),
client_id(cid),
scopes(scopes_arg),
@@ -117,8 +117,8 @@ OAuth2MintTokenFlow::OAuth2MintTokenFlow(URLRequestContextGetter* context,
Delegate* delegate,
const Parameters& parameters)
: OAuth2ApiCallFlow(context,
- parameters.login_refresh_token,
std::string(),
+ parameters.access_token,
std::vector<std::string>()),
delegate_(delegate),
parameters_(parameters),