Index: chrome/browser/sync/profile_sync_components_factory_impl.cc |
diff --git a/chrome/browser/sync/profile_sync_components_factory_impl.cc b/chrome/browser/sync/profile_sync_components_factory_impl.cc |
index 848272a6e6822f4d196edcc0231e23b8e397c623..57e720e7a3360cd5906fe0707d1b26dfac7c5036 100644 |
--- a/chrome/browser/sync/profile_sync_components_factory_impl.cc |
+++ b/chrome/browser/sync/profile_sync_components_factory_impl.cc |
@@ -61,6 +61,7 @@ |
#include "sync/api/attachments/attachment_service.h" |
#include "sync/api/attachments/attachment_service_impl.h" |
#include "sync/api/syncable_service.h" |
+#include "sync/internal_api/public/attachments/fake_attachment_downloader.h" |
#include "sync/internal_api/public/attachments/fake_attachment_store.h" |
#include "sync/internal_api/public/attachments/fake_attachment_uploader.h" |
@@ -569,19 +570,23 @@ base::WeakPtr<syncer::SyncableService> ProfileSyncComponentsFactoryImpl:: |
scoped_ptr<syncer::AttachmentService> |
ProfileSyncComponentsFactoryImpl::CreateAttachmentService( |
syncer::AttachmentService::Delegate* delegate) { |
- // TODO(maniscalco): Use a shared (one per profile) thread-safe instance of |
- // AttachmentUpload instead of creating a new one per AttachmentService (bug |
- // 369536). |
+ // TODO(maniscalco): Use a shared (one per profile) thread-safe instances of |
+ // AttachmentUploader and AttachmentDownloader instead of creating a new one |
+ // per AttachmentService (bug 369536). |
scoped_ptr<syncer::AttachmentUploader> attachment_uploader( |
new syncer::FakeAttachmentUploader); |
+ scoped_ptr<syncer::AttachmentDownloader> attachment_downloader( |
+ new syncer::FakeAttachmentDownloader()); |
scoped_ptr<syncer::AttachmentStore> attachment_store( |
new syncer::FakeAttachmentStore( |
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE))); |
scoped_ptr<syncer::AttachmentService> attachment_service( |
- new syncer::AttachmentServiceImpl( |
- attachment_store.Pass(), attachment_uploader.Pass(), delegate)); |
+ new syncer::AttachmentServiceImpl(attachment_store.Pass(), |
+ attachment_uploader.Pass(), |
+ attachment_downloader.Pass(), |
+ delegate)); |
return attachment_service.Pass(); |
} |