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

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

Issue 19567004: Convert SigninTracker to use OAuth2TokenService notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 3 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/browser/signin/signin_manager.cc » ('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 04d4fb9ef36f9162cae32cee2ed186b73c64a525..6a3c8c35cd4ba8c95dbcab34f89aded700663196 100644
--- a/chrome/browser/signin/fake_profile_oauth2_token_service.cc
+++ b/chrome/browser/signin/fake_profile_oauth2_token_service.cc
@@ -13,7 +13,9 @@ FakeProfileOAuth2TokenService::PendingRequest::~PendingRequest() {
// static
BrowserContextKeyedService* FakeProfileOAuth2TokenService::Build(
content::BrowserContext* profile) {
- return new FakeProfileOAuth2TokenService();
+ FakeProfileOAuth2TokenService* service = new FakeProfileOAuth2TokenService();
+ service->Initialize(reinterpret_cast<Profile*>(profile));
+ return service;
}
FakeProfileOAuth2TokenService::FakeProfileOAuth2TokenService() {
@@ -22,11 +24,6 @@ FakeProfileOAuth2TokenService::FakeProfileOAuth2TokenService() {
FakeProfileOAuth2TokenService::~FakeProfileOAuth2TokenService() {
}
-void FakeProfileOAuth2TokenService::Shutdown() {
- // Do not call the base class handler because it assumes that Initialize()
- // is always called before Shutdown() and that's not the case for this mock.
-}
-
void FakeProfileOAuth2TokenService::IssueRefreshToken(
const std::string& token) {
refresh_token_ = token;
« no previous file with comments | « chrome/browser/signin/fake_profile_oauth2_token_service.h ('k') | chrome/browser/signin/signin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698