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

Unified Diff: chrome/browser/signin/fake_profile_oauth2_token_service.cc

Issue 23382008: Making OAuth2TokenService multi-login aware, updating callers, minor fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing CR comments. Created 7 years, 4 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: chrome/browser/signin/fake_profile_oauth2_token_service.cc
diff --git a/chrome/browser/signin/fake_profile_oauth2_token_service.cc b/chrome/browser/signin/fake_profile_oauth2_token_service.cc
index 04d4fb9ef36f9162cae32cee2ed186b73c64a525..155428efffd89d8ef8640f65c1d0ba51bff11ef3 100644
--- a/chrome/browser/signin/fake_profile_oauth2_token_service.cc
+++ b/chrome/browser/signin/fake_profile_oauth2_token_service.cc
@@ -85,7 +85,8 @@ void FakeProfileOAuth2TokenService::CompleteRequests(
}
}
-std::string FakeProfileOAuth2TokenService::GetRefreshToken() {
+std::string FakeProfileOAuth2TokenService::GetRefreshToken(
+ const std::string& account_id) {
return refresh_token_;
}
@@ -107,10 +108,12 @@ FakeProfileOAuth2TokenService::GetPendingRequests() {
void FakeProfileOAuth2TokenService::FetchOAuth2Token(
RequestImpl* request,
+ const std::string& account_id,
net::URLRequestContextGetter* getter,
const std::string& client_id,
const std::string& client_secret,
const ScopeSet& scopes) {
+ // TODO(fgorski): Add the |account_id| to the |PendingRequest|.
PendingRequest pending_request;
pending_request.client_id = client_id;
pending_request.client_secret = client_secret;

Powered by Google App Engine
This is Rietveld 408576698