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

Unified Diff: google_apis/gaia/oauth2_token_service.cc

Issue 182573003: Extract OAuth2AccessTokenFetcher interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile errors in chrome Created 6 years, 10 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: google_apis/gaia/oauth2_token_service.cc
diff --git a/google_apis/gaia/oauth2_token_service.cc b/google_apis/gaia/oauth2_token_service.cc
index 5f59d04ff86725603677c536f64d3cd79e703e8d..d359d3ede9c594a2d6b0cbf6e7fd851540c66ba0 100644
--- a/google_apis/gaia/oauth2_token_service.cc
+++ b/google_apis/gaia/oauth2_token_service.cc
@@ -246,11 +246,12 @@ OAuth2TokenService::Fetcher::~Fetcher() {
}
void OAuth2TokenService::Fetcher::Start() {
- fetcher_.reset(new OAuth2AccessTokenFetcher(this, getter_.get()));
+ fetcher_.reset(new OAuth2AccessTokenFetcherImpl(getter_.get()));
fetcher_->Start(client_id_,
client_secret_,
refresh_token_,
- std::vector<std::string>(scopes_.begin(), scopes_.end()));
+ std::vector<std::string>(scopes_.begin(), scopes_.end()),
+ this);
Roger Tawa OOO till Jul 10th 2014/03/03 21:24:44 Maybe define a virtual CreateAccessTokenFetcher()
msarda 2014/03/04 12:37:13 I plan to do that in a separate CL. Just to separa
retry_timer_.Stop();
}

Powered by Google App Engine
This is Rietveld 408576698