| Index: chrome/service/cloud_print/cloud_print_auth.cc
|
| diff --git a/chrome/service/cloud_print/cloud_print_auth.cc b/chrome/service/cloud_print/cloud_print_auth.cc
|
| index 9bc820c71cf3a233fcde5e98d797fd6e953f9f91..5abfb997e7ee544058b736acb9cc2f507ae6da45 100644
|
| --- a/chrome/service/cloud_print/cloud_print_auth.cc
|
| +++ b/chrome/service/cloud_print/cloud_print_auth.cc
|
| @@ -62,7 +62,6 @@ void CloudPrintAuth::AuthenticateWithRobotAuthCode(
|
| robot_email_ = robot_email;
|
| // Now that we have an auth code we need to get the refresh and access tokens.
|
| oauth_client_.reset(new gaia::GaiaOAuthClient(
|
| - GaiaUrls::GetInstance()->oauth2_token_url(),
|
| g_service_process->GetServiceURLRequestContextGetter()));
|
| oauth_client_->GetTokensFromAuthCode(oauth_client_info_,
|
| robot_oauth_auth_code,
|
| @@ -72,10 +71,11 @@ void CloudPrintAuth::AuthenticateWithRobotAuthCode(
|
|
|
| void CloudPrintAuth::RefreshAccessToken() {
|
| oauth_client_.reset(new gaia::GaiaOAuthClient(
|
| - GaiaUrls::GetInstance()->oauth2_token_url(),
|
| g_service_process->GetServiceURLRequestContextGetter()));
|
| + std::vector<std::string> empty_scope_list; // (Use scope from refresh token.)
|
| oauth_client_->RefreshToken(oauth_client_info_,
|
| refresh_token_,
|
| + empty_scope_list,
|
| kCloudPrintAuthMaxRetryCount,
|
| this);
|
| }
|
| @@ -139,7 +139,6 @@ CloudPrintURLFetcher::ResponseAction CloudPrintAuth::HandleJSONData(
|
| json_data->GetString(kXMPPJidValue, &robot_email_);
|
| // Now that we have an auth code we need to get the refresh and access tokens.
|
| oauth_client_.reset(new gaia::GaiaOAuthClient(
|
| - GaiaUrls::GetInstance()->oauth2_token_url(),
|
| g_service_process->GetServiceURLRequestContextGetter()));
|
| oauth_client_->GetTokensFromAuthCode(oauth_client_info_,
|
| auth_code,
|
|
|