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

Unified Diff: chrome/browser/sync/profile_sync_components_factory_impl.cc

Issue 307783002: Instantiate AttachmentDownloader and use it in AttachmentServiceImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
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..18b3caec5939e754f993f256ab07a90d1120fb09 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"
@@ -574,14 +575,18 @@ ProfileSyncComponentsFactoryImpl::CreateAttachmentService(
// 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();
}
« no previous file with comments | « no previous file | sync/api/attachments/attachment_id.h » ('j') | sync/api/attachments/attachment_service_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698