diff options
Diffstat (limited to 'sync/api/fake_syncable_service.cc')
-rw-r--r-- | sync/api/fake_syncable_service.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sync/api/fake_syncable_service.cc b/sync/api/fake_syncable_service.cc index d2177e9..ec7b90c 100644 --- a/sync/api/fake_syncable_service.cc +++ b/sync/api/fake_syncable_service.cc @@ -26,8 +26,8 @@ void FakeSyncableService::set_process_sync_changes_error( } void FakeSyncableService::set_attachment_store( - scoped_ptr<AttachmentStore> attachment_store) { - attachment_store_ = attachment_store.Pass(); + const scoped_refptr<AttachmentStore>& attachment_store) { + attachment_store_ = attachment_store; } const AttachmentService* FakeSyncableService::attachment_service() const { @@ -70,9 +70,8 @@ SyncError FakeSyncableService::ProcessSyncChanges( return process_sync_changes_error_; } -scoped_ptr<AttachmentStore> FakeSyncableService::GetAttachmentStoreForSync() { - return attachment_store_ ? attachment_store_->CreateAttachmentStoreForSync() - : scoped_ptr<AttachmentStore>(); +scoped_refptr<AttachmentStore> FakeSyncableService::GetAttachmentStore() { + return attachment_store_; } void FakeSyncableService::SetAttachmentService( |