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

Issue 548373003: Move AttachmentStore ownership to datatype (Closed)

Created:
6 years, 3 months ago by pavely
Modified:
6 years, 3 months ago
Reviewers:
maniscalco
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 : SyncableService related changes #

Total comments: 5

Patch Set 2 : Don't create AttachmentService in GenericChangeProcessor if AttachmentStore is NULL #

Total comments: 10

Patch Set 3 : Rebase. Changes after feedback. #

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

Messages

Total messages: 8 (1 generated)
pavely
Nick, please take a look. I've broken this change into two parts, One related to ...
6 years, 3 months ago (2014-09-08 21:24:32 UTC) #1
maniscalco
Nice work! Here's my feedback on patch sets #1 and #2. Also, can you wrap ...
6 years, 3 months ago (2014-09-08 21:56:35 UTC) #2
pavely
PTAL https://codereview.chromium.org/548373003/diff/20001/components/sync_driver/generic_change_processor.cc File components/sync_driver/generic_change_processor.cc (right): https://codereview.chromium.org/548373003/diff/20001/components/sync_driver/generic_change_processor.cc#newcode102 components/sync_driver/generic_change_processor.cc:102: if (attachment_store) { On 2014/09/08 21:56:35, maniscalco wrote: ...
6 years, 3 months ago (2014-09-09 23:52:31 UTC) #3
maniscalco
lgtm
6 years, 3 months ago (2014-09-09 23:59:39 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pavely@chromium.org/548373003/40001
6 years, 3 months ago (2014-09-10 00:30:16 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001) as e733afbf527bb6ece11a511245ce77fe06335291
6 years, 3 months ago (2014-09-10 01:43:38 UTC) #7
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:57:34 UTC) #8
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e39fad3ae70d872f045afb6230d0cff54f63eafe
Cr-Commit-Position: refs/heads/master@{#294070}

Powered by Google App Engine
This is Rietveld 408576698