1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/signin/fake_account_tracker_service.h"
7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
9 #include "components/signin/core/browser/profile_oauth2_token_service.h"
12 KeyedService* FakeAccountTrackerService::Build(
13 content::BrowserContext* context) {
14 Profile* profile = Profile::FromBrowserContext(context);
15 FakeAccountTrackerService* service = new FakeAccountTrackerService();
17 ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
19 profile->GetRequestContext());
23 FakeAccountTrackerService::FakeAccountTrackerService() {}
25 FakeAccountTrackerService::~FakeAccountTrackerService() {}
27 void FakeAccountTrackerService::StartFetchingUserInfo(
28 const std::string& account_id) {
29 // In tests, don't do actual network fetch.