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

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

Issue 284763004: Create AccountServiceFlagFetcher which downloads an account's Gaia service flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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
« no previous file with comments | « chrome/browser/signin/fake_profile_oauth2_token_service.h ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 938979aa0a53103fe526ed1c873ffd97b3eb95d4..da34533194dc8628a08528657ee06a25382383ba 100644
--- a/chrome/browser/signin/fake_profile_oauth2_token_service.cc
+++ b/chrome/browser/signin/fake_profile_oauth2_token_service.cc
@@ -67,6 +67,10 @@ void FakeProfileOAuth2TokenService::IssueRefreshTokenForUser(
}
}
+void FakeProfileOAuth2TokenService::IssueAllRefreshTokensLoaded() {
+ FireRefreshTokensLoaded();
+}
+
void FakeProfileOAuth2TokenService::IssueAllTokensForAccount(
const std::string& account_id,
const std::string& access_token,
@@ -79,6 +83,17 @@ void FakeProfileOAuth2TokenService::IssueAllTokensForAccount(
expiration);
}
+void FakeProfileOAuth2TokenService::IssueErrorForAllPendingRequestsForAccount(
+ const std::string& account_id,
+ const GoogleServiceAuthError& error) {
+ CompleteRequests(account_id,
+ true,
+ ScopeSet(),
+ error,
+ std::string(),
+ base::Time());
+}
+
void FakeProfileOAuth2TokenService::IssueTokenForScope(
const ScopeSet& scope,
const std::string& access_token,
« no previous file with comments | « chrome/browser/signin/fake_profile_oauth2_token_service.h ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698