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

Unified Diff: sync/api/fake_syncable_service.cc

Issue 986743004: [Sync] Refactor AttachmentStore classes. Introduce concept of referrer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/api/fake_syncable_service.h ('k') | sync/api/syncable_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/fake_syncable_service.cc
diff --git a/sync/api/fake_syncable_service.cc b/sync/api/fake_syncable_service.cc
index ec7b90cf53be24bd54de84b09e4988d835d2f66b..d2177e9a0c1f0668e5160ab86e6dbae33acc0d99 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(
- const scoped_refptr<AttachmentStore>& attachment_store) {
- attachment_store_ = attachment_store;
+ scoped_ptr<AttachmentStore> attachment_store) {
+ attachment_store_ = attachment_store.Pass();
}
const AttachmentService* FakeSyncableService::attachment_service() const {
@@ -70,8 +70,9 @@ SyncError FakeSyncableService::ProcessSyncChanges(
return process_sync_changes_error_;
}
-scoped_refptr<AttachmentStore> FakeSyncableService::GetAttachmentStore() {
- return attachment_store_;
+scoped_ptr<AttachmentStore> FakeSyncableService::GetAttachmentStoreForSync() {
+ return attachment_store_ ? attachment_store_->CreateAttachmentStoreForSync()
+ : scoped_ptr<AttachmentStore>();
}
void FakeSyncableService::SetAttachmentService(
« no previous file with comments | « sync/api/fake_syncable_service.h ('k') | sync/api/syncable_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698