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

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

Issue 272043002: Invoke AttachmentUploader and update AttachmentIds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build 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_mock.cc
diff --git a/chrome/browser/sync/profile_sync_components_factory_mock.cc b/chrome/browser/sync/profile_sync_components_factory_mock.cc
index b8b32f07d08d9a450380b3e09785edbbabcf723b..a1f361f5324b4968d51e595018640bb263260cda 100644
--- a/chrome/browser/sync/profile_sync_components_factory_mock.cc
+++ b/chrome/browser/sync/profile_sync_components_factory_mock.cc
@@ -6,6 +6,7 @@
#include "components/sync_driver/change_processor.h"
#include "components/sync_driver/model_associator.h"
#include "content/public/browser/browser_thread.h"
+#include "sync/api/attachments/attachment_service_impl.h"
#include "sync/internal_api/public/attachments/fake_attachment_store.h"
using browser_sync::AssociatorInterface;
@@ -28,18 +29,14 @@ ProfileSyncComponentsFactoryMock::ProfileSyncComponentsFactoryMock(
ProfileSyncComponentsFactoryMock::~ProfileSyncComponentsFactoryMock() {}
-scoped_ptr<syncer::AttachmentStore>
- ProfileSyncComponentsFactoryMock::CreateCustomAttachmentStoreForType(
- syncer::ModelType type) {
- scoped_ptr<syncer::AttachmentStore> store(
- new syncer::FakeAttachmentStore(
- content::BrowserThread::GetMessageLoopProxyForThread(
- content::BrowserThread::IO)));
- return store.Pass();
+scoped_ptr<syncer::AttachmentService>
+ProfileSyncComponentsFactoryMock::CreateAttachmentService(
+ syncer::AttachmentService::Delegate* delegate) {
+ return syncer::AttachmentServiceImpl::CreateForTest();
}
ProfileSyncComponentsFactory::SyncComponents
- ProfileSyncComponentsFactoryMock::MakeSyncComponents() {
+ProfileSyncComponentsFactoryMock::MakeSyncComponents() {
return SyncComponents(model_associator_.release(),
change_processor_.release());
}
« no previous file with comments | « chrome/browser/sync/profile_sync_components_factory_mock.h ('k') | components/sync_driver/fake_generic_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698