Infobar material design refresh: bg color
[chromium-blink-merge.git] / components / sync_driver / fake_sync_client.cc
blob5b2aa8de7f9b0286d040b81388c6fd4208dc9c98
1 // Copyright 2015 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 "components/sync_driver/fake_sync_client.h"
7 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
8 #include "components/password_manager/core/browser/password_store.h"
10 namespace sync_driver {
12 FakeSyncClient::FakeSyncClient() : factory_(nullptr) {}
14 FakeSyncClient::FakeSyncClient(SyncApiComponentFactory* factory)
15 : factory_(factory) {}
17 FakeSyncClient::~FakeSyncClient() {}
19 SyncService* FakeSyncClient::GetSyncService() {
20 return nullptr;
23 PrefService* FakeSyncClient::GetPrefService() {
24 return nullptr;
27 bookmarks::BookmarkModel* FakeSyncClient::GetBookmarkModel() {
28 return nullptr;
31 history::HistoryService* FakeSyncClient::GetHistoryService() {
32 return nullptr;
35 scoped_refptr<password_manager::PasswordStore>
36 FakeSyncClient::GetPasswordStore() {
37 return scoped_refptr<password_manager::PasswordStore>();
40 autofill::PersonalDataManager* FakeSyncClient::GetPersonalDataManager() {
41 return nullptr;
44 scoped_refptr<autofill::AutofillWebDataService>
45 FakeSyncClient::GetWebDataService() {
46 return scoped_refptr<autofill::AutofillWebDataService>();
49 base::WeakPtr<syncer::SyncableService>
50 FakeSyncClient::GetSyncableServiceForType(syncer::ModelType type) {
51 return base::WeakPtr<syncer::SyncableService>();
54 SyncApiComponentFactory* FakeSyncClient::GetSyncApiComponentFactory() {
55 return factory_;
58 } // namespace sync_driver