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; |