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

Issue 986743004: [Sync] Refactor AttachmentStore classes. Introduce concept of referrer. (Closed)

Created:
5 years, 9 months ago by pavely
Modified:
5 years, 9 months ago
Reviewers:
cjhopman, maniscalco
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, maxbogue+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Refactor AttachmentStore classes. Introduce concept of referrer. In this change: - Move towards following class hierarchy: http://www.plantuml.com:80/plantuml/png/ZPBTJiCm38NlynIvv4TzWsaI525nCI5jkw-on1EZQHmvwQG9U7TC4-ZeKiITvNm-EiSExbv1Hxc6VOszYs24mDHQeG6xFNcGRqBAknYLVkd0nKr40l7nmqrU1deDeRUHYrfPkrEw3LmJx848YCkWqODfkECZBIOAZuHin9abWxUo9b0Hdjt38RGJyEhwZ4YZI9kJq_mmRp0pAPKnd7pGgG8t6usTHyVe7_FPtY3mbOth9ghGDjGxTnwlaEq-ySjv-KmCwZflxvVyE5bSIa4Mw7ZGyDHvAyHurPkgkhZgz9PuoNp75tDhAUZcJ68cwkATHyfXnFWn4_PFDsKuNLuKLrFodGS-0G00 - Remove AttachmenService::GetStore. Now attachment store is owned by model type, there is no need to get it from AttachmentService - Introduce AttachmentReferrer. There is no functionality behind it yet and interface is not complete for it. These will come in the next change. BUG=457735 R=maniscalco@chromium.org TEST=Not exposed in chrome. Only unit tests available (sync_unit_tests) Committed: https://crrev.com/6adcada8a799057c31c0f17550c9e2747a8df847 Cr-Commit-Position: refs/heads/master@{#319733} Committed: https://crrev.com/be7169cf3591e428d0b4056a2c23c8ace14f6169 Cr-Commit-Position: refs/heads/master@{#320015}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Changes based on Nick's feedback. Fixes for components_unittests. #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+503 lines, -678 lines) Patch
M chrome/browser/sync/profile_sync_components_factory_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_mock.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_mock.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/dom_distiller/core/dom_distiller_store.h View 1 chunk +1 line, -1 line 0 comments Download
M components/sync_driver/device_info_data_type_controller_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/sync_driver/fake_generic_change_processor.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync_driver/generic_change_processor.h View 1 1 chunk +1 line, -1 line 0 comments Download
M components/sync_driver/generic_change_processor.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M components/sync_driver/generic_change_processor_factory.cc View 1 1 chunk +4 lines, -7 lines 0 comments Download
M components/sync_driver/generic_change_processor_unittest.cc View 1 6 chunks +26 lines, -30 lines 0 comments Download
M components/sync_driver/shared_change_processor_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/sync_driver/sync_api_component_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M components/sync_driver/ui_data_type_controller_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M sync/BUILD.gn View 4 chunks +5 lines, -3 lines 0 comments Download
M sync/api/attachments/attachment_store.h View 1 8 chunks +49 lines, -74 lines 0 comments Download
M sync/api/attachments/attachment_store.cc View 1 2 chunks +62 lines, -21 lines 0 comments Download
A sync/api/attachments/attachment_store_backend.h View 1 1 chunk +64 lines, -0 lines 0 comments Download
A sync/api/attachments/attachment_store_backend.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M sync/api/fake_syncable_service.h View 1 3 chunks +3 lines, -4 lines 0 comments Download
M sync/api/fake_syncable_service.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M sync/api/syncable_service.h View 1 1 chunk +6 lines, -5 lines 0 comments Download
M sync/api/syncable_service.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M sync/internal_api/attachments/attachment_service_impl.cc View 1 4 chunks +5 lines, -10 lines 0 comments Download
M sync/internal_api/attachments/attachment_service_impl_unittest.cc View 16 chunks +56 lines, -41 lines 0 comments Download
M sync/internal_api/attachments/attachment_service_proxy.cc View 2 chunks +0 lines, -8 lines 0 comments Download
M sync/internal_api/attachments/attachment_service_proxy_unittest.cc View 2 chunks +0 lines, -6 lines 0 comments Download
A + sync/internal_api/attachments/attachment_store_frontend.cc View 2 chunks +36 lines, -25 lines 0 comments Download
A + sync/internal_api/attachments/attachment_store_frontend_unittest.cc View 8 chunks +36 lines, -29 lines 0 comments Download
D sync/internal_api/attachments/attachment_store_handle.cc View 1 chunk +0 lines, -88 lines 0 comments Download
D sync/internal_api/attachments/attachment_store_handle_unittest.cc View 1 chunk +0 lines, -208 lines 0 comments Download
M sync/internal_api/attachments/attachment_store_test_template.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/attachments/in_memory_attachment_store.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M sync/internal_api/attachments/in_memory_attachment_store_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/attachments/on_disk_attachment_store.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M sync/internal_api/attachments/on_disk_attachment_store_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M sync/internal_api/public/attachments/attachment_service.h View 1 chunk +0 lines, -5 lines 0 comments Download
M sync/internal_api/public/attachments/attachment_service_impl.h View 4 chunks +5 lines, -3 lines 0 comments Download
M sync/internal_api/public/attachments/attachment_service_proxy.h View 2 chunks +0 lines, -5 lines 0 comments Download
A sync/internal_api/public/attachments/attachment_store_frontend.h View 1 chunk +69 lines, -0 lines 0 comments Download
D sync/internal_api/public/attachments/attachment_store_handle.h View 1 chunk +0 lines, -68 lines 0 comments Download
M sync/internal_api/public/attachments/in_memory_attachment_store.h View 2 chunks +6 lines, -2 lines 0 comments Download
M sync/internal_api/public/attachments/on_disk_attachment_store.h View 2 chunks +6 lines, -2 lines 0 comments Download
M sync/sync.gyp View 3 chunks +4 lines, -2 lines 0 comments Download
M sync/sync_tests.gypi View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (6 generated)
pavely
PTAL. The number of changed lines is misleading. Most of it is renaming AttachmentStoreHandle and ...
5 years, 9 months ago (2015-03-06 21:34:24 UTC) #1
maniscalco
Nice work. Here's my feedback. Mostly nits. https://codereview.chromium.org/986743004/diff/1/sync/api/attachments/attachment_store.h File sync/api/attachments/attachment_store.h (right): https://codereview.chromium.org/986743004/diff/1/sync/api/attachments/attachment_store.h#newcode124 sync/api/attachments/attachment_store.h:124: scoped_ptr<AttachmentStore> CreateAttachmentStoreForSync(); ...
5 years, 9 months ago (2015-03-06 23:15:04 UTC) #2
pavely
I've made changes based on your feedback and fixed components_unittests. PTAL. https://codereview.chromium.org/986743004/diff/1/sync/api/attachments/attachment_store.h File sync/api/attachments/attachment_store.h (right): ...
5 years, 9 months ago (2015-03-09 18:09:29 UTC) #3
maniscalco
LGTM
5 years, 9 months ago (2015-03-09 20:01:05 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/986743004/20001
5 years, 9 months ago (2015-03-09 20:10:55 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/48362)
5 years, 9 months ago (2015-03-09 20:34:09 UTC) #8
pavely
Chris, There is a small change in dom_distiller_store.h. Could you approve it?
5 years, 9 months ago (2015-03-09 20:55:19 UTC) #10
cjhopman
lgtm
5 years, 9 months ago (2015-03-09 20:59:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/986743004/20001
5 years, 9 months ago (2015-03-09 20:59:48 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-09 21:14:42 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/6adcada8a799057c31c0f17550c9e2747a8df847 Cr-Commit-Position: refs/heads/master@{#319733}
5 years, 9 months ago (2015-03-09 21:16:18 UTC) #15
Bence
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/996473005/ by bnc@chromium.org. ...
5 years, 9 months ago (2015-03-09 23:08:49 UTC) #16
pavely
I'm gonna try relanding this CL. I didn't find anything wrong with this change and ...
5 years, 9 months ago (2015-03-10 23:11:00 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/986743004/40001
5 years, 9 months ago (2015-03-10 23:18:30 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-11 01:19:24 UTC) #21
commit-bot: I haz the power
5 years, 9 months ago (2015-03-11 01:20:19 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/be7169cf3591e428d0b4056a2c23c8ace14f6169
Cr-Commit-Position: refs/heads/master@{#320015}

Powered by Google App Engine
This is Rietveld 408576698