Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / signin / fake_account_tracker_service.cc
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.
4
5 #include "chrome/browser/signin/fake_account_tracker_service.h"
6
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"
10
11 // static
12 KeyedService* FakeAccountTrackerService::Build(
13     content::BrowserContext* context) {
14   Profile* profile = Profile::FromBrowserContext(context);
15   FakeAccountTrackerService* service = new FakeAccountTrackerService();
16   service->Initialize(
17       ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
18       profile->GetPrefs(),
19       profile->GetRequestContext());
20   return service;
21 }
22
23 FakeAccountTrackerService::FakeAccountTrackerService() {}
24
25 FakeAccountTrackerService::~FakeAccountTrackerService() {}
26
27 void FakeAccountTrackerService::StartFetchingUserInfo(
28     const std::string& account_id) {
29   // In tests, don't do actual network fetch.
30 }