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

Side by Side Diff: components/sync/driver/fake_sync_client.cc

Issue 2732333003: [Sync] ModelTypeStore factory shouldn't require valid PSS to function correctly (Closed)
Patch Set: Address comments Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « components/sync/driver/fake_sync_client.h ('k') | components/sync/driver/sync_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync/driver/fake_sync_client.h" 5 #include "components/sync/driver/fake_sync_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "components/sync/base/extensions_activity.h" 9 #include "components/sync/base/extensions_activity.h"
10 #include "components/sync/base/sync_prefs.h" 10 #include "components/sync/base/sync_prefs.h"
(...skipping 22 matching lines...) Expand all
33 33
34 FakeSyncClient::FakeSyncClient(SyncApiComponentFactory* factory) 34 FakeSyncClient::FakeSyncClient(SyncApiComponentFactory* factory)
35 : factory_(factory), sync_service_(base::MakeUnique<FakeSyncService>()) { 35 : factory_(factory), sync_service_(base::MakeUnique<FakeSyncService>()) {
36 SyncPrefs::RegisterProfilePrefs(pref_service_.registry()); 36 SyncPrefs::RegisterProfilePrefs(pref_service_.registry());
37 } 37 }
38 38
39 FakeSyncClient::~FakeSyncClient() {} 39 FakeSyncClient::~FakeSyncClient() {}
40 40
41 void FakeSyncClient::Initialize() {} 41 void FakeSyncClient::Initialize() {}
42 42
43 base::SequencedWorkerPool* FakeSyncClient::GetBlockingPool() {
44 return nullptr;
45 }
46
43 SyncService* FakeSyncClient::GetSyncService() { 47 SyncService* FakeSyncClient::GetSyncService() {
44 return sync_service_.get(); 48 return sync_service_.get();
45 } 49 }
46 50
47 PrefService* FakeSyncClient::GetPrefService() { 51 PrefService* FakeSyncClient::GetPrefService() {
48 return &pref_service_; 52 return &pref_service_;
49 } 53 }
50 54
51 base::FilePath FakeSyncClient::GetLocalSyncBackendFolder() { 55 base::FilePath FakeSyncClient::GetLocalSyncBackendFolder() {
52 return base::FilePath(); 56 return base::FilePath();
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 118
115 SyncApiComponentFactory* FakeSyncClient::GetSyncApiComponentFactory() { 119 SyncApiComponentFactory* FakeSyncClient::GetSyncApiComponentFactory() {
116 return factory_; 120 return factory_;
117 } 121 }
118 122
119 void FakeSyncClient::SetModelTypeSyncBridge(ModelTypeSyncBridge* bridge) { 123 void FakeSyncClient::SetModelTypeSyncBridge(ModelTypeSyncBridge* bridge) {
120 bridge_ = bridge; 124 bridge_ = bridge;
121 } 125 }
122 126
123 } // namespace syncer 127 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/fake_sync_client.h ('k') | components/sync/driver/sync_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698