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

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

Issue 166573002: Fake PO2TS GetRequestContext should return NULL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « chrome/browser/signin/fake_profile_oauth2_token_service.h ('k') | no next file » | 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 e1842eb558981452422fe797fd4ba7ee01348204..0d771deae04e7b5e937a75b18d160ed7b3480e74 100644
--- a/chrome/browser/signin/fake_profile_oauth2_token_service.cc
+++ b/chrome/browser/signin/fake_profile_oauth2_token_service.cc
@@ -44,6 +44,12 @@ bool FakeProfileOAuth2TokenService::RefreshTokenIsAvailable(
return !GetRefreshToken(account_id).empty();
}
+void FakeProfileOAuth2TokenService::LoadCredentials(
+ const std::string& primary_account_id) {
+ // Empty implementation as FakeProfileOAuth2TokenService does not have any
+ // credentials to load.
+}
+
std::vector<std::string> FakeProfileOAuth2TokenService::GetAccounts() {
std::vector<std::string> account_ids;
for (std::map<std::string, std::string>::const_iterator iter =
@@ -152,6 +158,11 @@ std::string FakeProfileOAuth2TokenService::GetRefreshToken(
std::string();
}
+net::URLRequestContextGetter*
+FakeProfileOAuth2TokenService::GetRequestContext() {
+ return NULL;
+}
+
std::vector<FakeProfileOAuth2TokenService::PendingRequest>
FakeProfileOAuth2TokenService::GetPendingRequests() {
std::vector<PendingRequest> valid_requests;
« no previous file with comments | « chrome/browser/signin/fake_profile_oauth2_token_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698