summaryrefslogtreecommitdiffstats
path: root/components/sync_driver/shared_change_processor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/sync_driver/shared_change_processor.cc')
-rw-r--r--components/sync_driver/shared_change_processor.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/sync_driver/shared_change_processor.cc b/components/sync_driver/shared_change_processor.cc
index ce49430..24e7136 100644
--- a/components/sync_driver/shared_change_processor.cc
+++ b/components/sync_driver/shared_change_processor.cc
@@ -12,6 +12,10 @@
using base::AutoLock;
+namespace syncer {
+class AttachmentService;
+}
+
namespace sync_driver {
SharedChangeProcessor::SharedChangeProcessor()
@@ -72,6 +76,12 @@ base::WeakPtr<syncer::SyncableService> SharedChangeProcessor::Connect(
local_service,
merge_result,
sync_factory).release();
+ // If available, propagate attachment service to the syncable service.
+ scoped_ptr<syncer::AttachmentService> attachment_service =
+ generic_change_processor_->GetAttachmentService();
+ if (attachment_service) {
+ local_service->SetAttachmentService(attachment_service.Pass());
+ }
return local_service;
}