|
Move AttachmentStore ownership to datatype
With this change attachment store ownership is moved to datatype. If
datatype wants to use attachments it needs to instantiate attachment
store and return it to sync via GetAttachmentStore.
GenericChangeProcessorFactory calls SyncableService::GetAttachmentStore
and passes attachment_store through GenericChangeProcessor::ctor to
AttachmentService::ctor.
GetAttachmentStore returning NULL means datatype doesn\u2019t use attachments,
therefore GenericChangeProcessor doesn\u2019t create AttachmentService.
R=maniscalco@chromium.org
BUG= 412070
Committed: https://crrev.com/e39fad3ae70d872f045afb6230d0cff54f63eafe
Cr-Commit-Position: refs/heads/master@{#294070}
Total comments: 5
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+137 lines, -70 lines) |
Patch |
 |
M |
chrome/browser/sync/profile_sync_components_factory_impl.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_components_factory_impl.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_components_factory_mock.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_components_factory_mock.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/fake_generic_change_processor.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync_driver/generic_change_processor.h
|
View
|
1
2
|
2 chunks |
+10 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/generic_change_processor.cc
|
View
|
1
2
|
8 chunks |
+38 lines, -12 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/generic_change_processor_factory.cc
|
View
|
|
2 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/generic_change_processor_unittest.cc
|
View
|
1
2
|
5 chunks |
+17 lines, -12 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/shared_change_processor_unittest.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/sync_api_component_factory.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/ui_data_type_controller_unittest.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sync/api/attachments/attachment_store.h
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/api/attachments/fake_attachment_store.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/api/attachments/fake_attachment_store_unittest.cc
|
View
|
|
10 chunks |
+19 lines, -18 lines |
0 comments
|
Download
|
 |
M |
sync/api/syncable_service.h
|
View
|
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/api/syncable_service.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/attachments/attachment_service_impl.cc
|
View
|
1
2
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/attachments/attachment_service_impl_unittest.cc
|
View
|
1
2
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/attachments/attachment_service_impl.h
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 8 (1 generated)
|