diff options
Diffstat (limited to 'google_apis/gaia/oauth2_api_call_flow.cc')
-rw-r--r-- | google_apis/gaia/oauth2_api_call_flow.cc | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/google_apis/gaia/oauth2_api_call_flow.cc b/google_apis/gaia/oauth2_api_call_flow.cc index 9f24b18..4c4940d 100644 --- a/google_apis/gaia/oauth2_api_call_flow.cc +++ b/google_apis/gaia/oauth2_api_call_flow.cc @@ -41,9 +41,6 @@ OAuth2ApiCallFlow::OAuth2ApiCallFlow( refresh_token_(refresh_token), access_token_(access_token), scopes_(scopes), - chrome_client_id_(GaiaUrls::GetInstance()->oauth2_chrome_client_id()), - chrome_client_secret_( - GaiaUrls::GetInstance()->oauth2_chrome_client_secret()), state_(INITIAL), tried_mint_access_token_(false) { } @@ -54,15 +51,6 @@ void OAuth2ApiCallFlow::Start() { BeginApiCall(); } -#if defined(OS_CHROMEOS) -void OAuth2ApiCallFlow::SetChromeOAuthClientInfo( - const std::string& chrome_client_id, - const std::string& chrome_client_secret) { - chrome_client_id_ = chrome_client_id; - chrome_client_secret_ = chrome_client_secret; -} -#endif - void OAuth2ApiCallFlow::BeginApiCall() { CHECK(state_ == INITIAL || state_ == MINT_ACCESS_TOKEN_DONE); @@ -118,8 +106,8 @@ void OAuth2ApiCallFlow::BeginMintAccessToken() { oauth2_access_token_fetcher_.reset(CreateAccessTokenFetcher()); oauth2_access_token_fetcher_->Start( - chrome_client_id_, - chrome_client_secret_, + GaiaUrls::GetInstance()->oauth2_chrome_client_id(), + GaiaUrls::GetInstance()->oauth2_chrome_client_secret(), refresh_token_, scopes_); } |