| OLD | NEW |
| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 ModelType type) { | 93 ModelType type) { |
| 94 return base::WeakPtr<SyncableService>(); | 94 return base::WeakPtr<SyncableService>(); |
| 95 } | 95 } |
| 96 | 96 |
| 97 base::WeakPtr<ModelTypeSyncBridge> FakeSyncClient::GetSyncBridgeForModelType( | 97 base::WeakPtr<ModelTypeSyncBridge> FakeSyncClient::GetSyncBridgeForModelType( |
| 98 ModelType type) { | 98 ModelType type) { |
| 99 return bridge_->AsWeakPtr(); | 99 return bridge_->AsWeakPtr(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 scoped_refptr<ModelSafeWorker> FakeSyncClient::CreateModelWorkerForGroup( | 102 scoped_refptr<ModelSafeWorker> FakeSyncClient::CreateModelWorkerForGroup( |
| 103 ModelSafeGroup group, | 103 ModelSafeGroup group) { |
| 104 WorkerLoopDestructionObserver* observer) { | |
| 105 return scoped_refptr<ModelSafeWorker>(); | 104 return scoped_refptr<ModelSafeWorker>(); |
| 106 } | 105 } |
| 107 | 106 |
| 108 SyncApiComponentFactory* FakeSyncClient::GetSyncApiComponentFactory() { | 107 SyncApiComponentFactory* FakeSyncClient::GetSyncApiComponentFactory() { |
| 109 return factory_; | 108 return factory_; |
| 110 } | 109 } |
| 111 | 110 |
| 112 void FakeSyncClient::SetModelTypeSyncBridge(ModelTypeSyncBridge* bridge) { | 111 void FakeSyncClient::SetModelTypeSyncBridge(ModelTypeSyncBridge* bridge) { |
| 113 bridge_ = bridge; | 112 bridge_ = bridge; |
| 114 } | 113 } |
| 115 | 114 |
| 116 } // namespace syncer | 115 } // namespace syncer |
| OLD | NEW |