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

Unified Diff: sync/api/fake_syncable_service.cc

Issue 996473005: Revert of [Sync] Refactor AttachmentStore classes. Introduce concept of referrer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 d2177e9a0c1f0668e5160ab86e6dbae33acc0d99..ec7b90cf53be24bd54de84b09e4988d835d2f66b 100644
--- a/sync/api/fake_syncable_service.cc
+++ b/sync/api/fake_syncable_service.cc
@@ -26,8 +26,8 @@
}
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 @@
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(
« 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