| Index: chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc
|
| diff --git a/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc b/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc
|
| index f4191e7798dc5973403bc6e18a1bd7aa2aa2a72e..ba802715ca00e0e65f785ae4101fd1967e647a8a 100644
|
| --- a/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc
|
| +++ b/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc
|
| @@ -37,8 +37,6 @@ PolicyOAuth2TokenFetcher::PolicyOAuth2TokenFetcher(
|
| const TokenCallback& callback)
|
| : auth_context_getter_(auth_context_getter),
|
| system_context_getter_(system_context_getter),
|
| - retry_count_(0),
|
| - failed_(false),
|
| callback_(callback) {}
|
|
|
| PolicyOAuth2TokenFetcher::PolicyOAuth2TokenFetcher(
|
| @@ -47,8 +45,6 @@ PolicyOAuth2TokenFetcher::PolicyOAuth2TokenFetcher(
|
| const TokenCallback& callback)
|
| : auth_code_(auth_code),
|
| system_context_getter_(system_context_getter),
|
| - retry_count_(0),
|
| - failed_(false),
|
| callback_(callback) {
|
| }
|
|
|
| @@ -59,6 +55,13 @@ void PolicyOAuth2TokenFetcher::Start() {
|
| StartFetchingRefreshToken();
|
| }
|
|
|
| +void PolicyOAuth2TokenFetcher::StartWithRefreshToken(
|
| + const std::string& oauth2_refresh_token) {
|
| + retry_count_ = 0;
|
| + oauth2_refresh_token_ = oauth2_refresh_token;
|
| + StartFetchingAccessToken();
|
| +}
|
| +
|
| void PolicyOAuth2TokenFetcher::StartFetchingRefreshToken() {
|
| if (auth_code_.empty()) {
|
| refresh_token_fetcher_.reset(new GaiaAuthFetcher(
|
|
|