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

Issue 2399953002: [Sync] Move attachments code out of core/. (Closed)

Created:
4 years, 2 months ago by maxbogue
Modified:
4 years, 2 months ago
Reviewers:
Nico, skym, sdefresne
CC:
chromium-reviews, extensions-reviews_chromium.org, alemate+watch_chromium.org, vabr+watchlistpasswordmanager_chromium.org, droger+watchlist_chromium.org, tfarina, sdefresne+watchlist_chromium.org, achuith+watch_chromium.org, pam+watch_chromium.org, sync-reviews_chromium.org, oshima+watch_chromium.org, blundell+watchlist_chromium.org, chromium-apps-reviews_chromium.org, gcasto+watchlist_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Move attachments code out of core/. Things moved to... api/attachments/ attachment_service attachment_service_proxy api_impl/attachments/ attachment_service_impl task_queue engine/attachments/ attachment_downloader attachment_store_backend attachment_store_frontend attachment_uploader attachment_util fake_attachment_downloader fake_attachment_uploader in_memory_attachment_store on_disk_attachment_store engine_impl/attachments/ attachment_downloader_impl attachment_uploader_impl proto/ I'm unfamiliar with the attachments code so this was as best as I could tell where they should go... The store things in particular are a bit weird and hard to place. BUG=631271 TBR=thakis,sdefresne Committed: https://crrev.com/7ed9ccefbec84b7e228a415449876a9bb5b3e105 Cr-Commit-Position: refs/heads/master@{#423954}

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Fix some things. #

Total comments: 11

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -7581 lines) Patch
M chrome/browser/chromeos/login/supervised/supervised_user_creation_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/supervised/supervised_user_password_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/supervised/supervised_user_test_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/preferences_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/sessions/sessions_apitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/synced_pref_change_registrar_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/supervised_user/legacy/supervised_user_registration_utility_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/supervised_user/legacy/supervised_user_sync_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/themes/theme_syncable_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/signin_create_profile_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/signin_supervised_user_import_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/browser_sync/profile_sync_components_factory_impl.cc View 1 2 4 chunks +9 lines, -12 lines 0 comments Download
M components/dom_distiller/core/dom_distiller_store_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/history/core/browser/history_service_unittest.cc View 2 chunks +1 line, -1 line 0 comments Download
M components/history/core/browser/typed_url_syncable_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/sync/browser/password_manager_setting_migrator_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/BUILD.gn View 1 2 3 11 chunks +43 lines, -43 lines 0 comments Download
M components/sync/api/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync/api/attachments/attachment.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/sync/api/attachments/attachment_service.h View 1 4 chunks +18 lines, -4 lines 0 comments Download
A components/sync/api/attachments/attachment_service.cc View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
A + components/sync/api/attachments/attachment_service_proxy.h View 3 chunks +4 lines, -4 lines 0 comments Download
A + components/sync/api/attachments/attachment_service_proxy.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
A + components/sync/api/attachments/attachment_service_proxy_for_test.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + components/sync/api/attachments/attachment_service_proxy_for_test.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + components/sync/api/attachments/attachment_service_proxy_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/api/attachments/attachment_store.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
D components/sync/api/attachments/attachment_store_backend.h View 1 chunk +0 lines, -68 lines 0 comments Download
D components/sync/api/attachments/attachment_store_backend.cc View 1 chunk +0 lines, -22 lines 0 comments Download
M components/sync/api/attachments/attachment_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/api/sync_change_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/api/sync_data.h View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/api/sync_data_unittest.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
A + components/sync/api_impl/DEPS View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
A + components/sync/api_impl/attachments/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/sync/api_impl/attachments/attachment_service_impl.h View 1 4 chunks +8 lines, -11 lines 0 comments Download
A + components/sync/api_impl/attachments/attachment_service_impl.cc View 1 3 chunks +3 lines, -19 lines 0 comments Download
A + components/sync/api_impl/attachments/attachment_service_impl_unittest.cc View 2 chunks +5 lines, -5 lines 0 comments Download
A + components/sync/api_impl/attachments/task_queue.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/sync/api_impl/attachments/task_queue_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
D components/sync/core/attachments/attachment_downloader.h View 1 chunk +0 lines, -75 lines 0 comments Download
D components/sync/core/attachments/attachment_downloader_impl.h View 1 chunk +0 lines, -134 lines 0 comments Download
D components/sync/core/attachments/attachment_service.h View 1 chunk +0 lines, -75 lines 0 comments Download
D components/sync/core/attachments/attachment_service_impl.h View 1 chunk +0 lines, -124 lines 0 comments Download
D components/sync/core/attachments/attachment_service_proxy.h View 1 chunk +0 lines, -106 lines 0 comments Download
D components/sync/core/attachments/attachment_service_proxy_for_test.h View 1 chunk +0 lines, -51 lines 0 comments Download
D components/sync/core/attachments/attachment_store_frontend.h View 1 2 1 chunk +0 lines, -74 lines 0 comments Download
D components/sync/core/attachments/attachment_uploader.h View 1 chunk +0 lines, -43 lines 0 comments Download
D components/sync/core/attachments/attachment_uploader_impl.h View 1 chunk +0 lines, -107 lines 0 comments Download
D components/sync/core/attachments/attachment_util.h View 1 chunk +0 lines, -28 lines 0 comments Download
D components/sync/core/attachments/fake_attachment_downloader.h View 1 chunk +0 lines, -32 lines 0 comments Download
D components/sync/core/attachments/fake_attachment_uploader.h View 1 chunk +0 lines, -31 lines 0 comments Download
D components/sync/core/attachments/in_memory_attachment_store.h View 1 chunk +0 lines, -75 lines 0 comments Download
D components/sync/core/attachments/on_disk_attachment_store.h View 1 chunk +0 lines, -107 lines 0 comments Download
D components/sync/core/attachments/task_queue.h View 1 chunk +0 lines, -286 lines 0 comments Download
D components/sync/core_impl/attachments/DEPS View 1 chunk +0 lines, -4 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_downloader.cc View 1 chunk +0 lines, -31 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_downloader_impl.cc View 1 chunk +0 lines, -291 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_downloader_impl_unittest.cc View 1 chunk +0 lines, -534 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_service.cc View 1 chunk +0 lines, -12 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_service_impl.cc View 1 chunk +0 lines, -328 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_service_impl_unittest.cc View 1 chunk +0 lines, -636 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_service_proxy.cc View 1 chunk +0 lines, -96 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_service_proxy_for_test.cc View 1 chunk +0 lines, -63 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_service_proxy_unittest.cc View 1 chunk +0 lines, -180 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_store_frontend.cc View 1 chunk +0 lines, -112 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_store_frontend_unittest.cc View 1 chunk +0 lines, -237 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_store_test_template.h View 1 chunk +0 lines, -522 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_uploader.cc View 1 chunk +0 lines, -12 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_uploader_impl.cc View 1 chunk +0 lines, -398 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_uploader_impl_unittest.cc View 1 chunk +0 lines, -672 lines 0 comments Download
D components/sync/core_impl/attachments/attachment_util.cc View 1 chunk +0 lines, -16 lines 0 comments Download
D components/sync/core_impl/attachments/fake_attachment_downloader.cc View 1 chunk +0 lines, -36 lines 0 comments Download
D components/sync/core_impl/attachments/fake_attachment_downloader_unittest.cc View 1 chunk +0 lines, -60 lines 0 comments Download
D components/sync/core_impl/attachments/fake_attachment_uploader.cc View 1 chunk +0 lines, -35 lines 0 comments Download
D components/sync/core_impl/attachments/fake_attachment_uploader_unittest.cc View 1 chunk +0 lines, -60 lines 0 comments Download
D components/sync/core_impl/attachments/in_memory_attachment_store.cc View 1 chunk +0 lines, -165 lines 0 comments Download
D components/sync/core_impl/attachments/in_memory_attachment_store_unittest.cc View 1 chunk +0 lines, -25 lines 0 comments Download
D components/sync/core_impl/attachments/on_disk_attachment_store.cc View 1 chunk +0 lines, -540 lines 0 comments Download
D components/sync/core_impl/attachments/on_disk_attachment_store_unittest.cc View 1 chunk +0 lines, -521 lines 0 comments Download
D components/sync/core_impl/attachments/proto/BUILD.gn View 1 chunk +0 lines, -14 lines 0 comments Download
D components/sync/core_impl/attachments/proto/attachment_store.proto View 1 chunk +0 lines, -37 lines 0 comments Download
D components/sync/core_impl/attachments/task_queue.cc View 1 chunk +0 lines, -5 lines 0 comments Download
D components/sync/core_impl/attachments/task_queue_unittest.cc View 1 chunk +0 lines, -232 lines 0 comments Download
M components/sync/device_info/device_info_sync_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/driver/fake_generic_change_processor.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/sync/driver/generic_change_processor.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/sync/driver/generic_change_processor_unittest.cc View 1 2 3 4 chunks +19 lines, -33 lines 0 comments Download
M components/sync/driver/shared_change_processor_unittest.cc View 1 2 chunks +2 lines, -2 lines 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/sync_api_component_factory_mock.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M components/sync/engine/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A + components/sync/engine/attachments/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A + components/sync/engine/attachments/attachment_downloader.h View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
A + components/sync/engine/attachments/attachment_downloader.cc View 1 2 2 chunks +5 lines, -7 lines 0 comments Download
A + components/sync/engine/attachments/attachment_store_backend.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/sync/engine/attachments/attachment_store_backend.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/sync/engine/attachments/attachment_store_frontend.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
A + components/sync/engine/attachments/attachment_store_frontend.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A + components/sync/engine/attachments/attachment_store_frontend_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A + components/sync/engine/attachments/attachment_store_test_template.h View 3 chunks +4 lines, -4 lines 0 comments Download
A components/sync/engine/attachments/attachment_uploader.h View 1 2 1 chunk +77 lines, -0 lines 0 comments Download
A + components/sync/engine/attachments/attachment_uploader.cc View 1 2 2 chunks +7 lines, -9 lines 0 comments Download
A + components/sync/engine/attachments/attachment_util.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/sync/engine/attachments/attachment_util.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/sync/engine/attachments/fake_attachment_downloader.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + components/sync/engine/attachments/fake_attachment_downloader.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + components/sync/engine/attachments/fake_attachment_downloader_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/sync/engine/attachments/fake_attachment_uploader.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + components/sync/engine/attachments/fake_attachment_uploader.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/sync/engine/attachments/fake_attachment_uploader_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/sync/engine/attachments/in_memory_attachment_store.h View 3 chunks +4 lines, -4 lines 0 comments Download
A + components/sync/engine/attachments/in_memory_attachment_store.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/sync/engine/attachments/in_memory_attachment_store_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/sync/engine/attachments/on_disk_attachment_store.h View 3 chunks +4 lines, -4 lines 0 comments Download
A + components/sync/engine/attachments/on_disk_attachment_store.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/sync/engine/attachments/on_disk_attachment_store_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/sync/engine_impl/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A + components/sync/engine_impl/attachments/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A + components/sync/engine_impl/attachments/attachment_downloader_impl.h View 3 chunks +4 lines, -4 lines 0 comments Download
A + components/sync/engine_impl/attachments/attachment_downloader_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/sync/engine_impl/attachments/attachment_downloader_impl_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/sync/engine_impl/attachments/attachment_uploader_impl.h View 3 chunks +4 lines, -4 lines 0 comments Download
A + components/sync/engine_impl/attachments/attachment_uploader_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/sync/engine_impl/attachments/attachment_uploader_impl_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
A + components/sync/engine_impl/attachments/proto/BUILD.gn View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/sync/engine_impl/attachments/proto/attachment_store.proto View 0 chunks +-1 lines, --1 lines 0 comments Download
M components/sync_sessions/favicon_cache_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync_sessions/lost_navigations_recorder_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/syncable_prefs/pref_service_syncable_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/wifi_sync/wifi_credential_syncable_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (13 generated)
maxbogue
Sky, PTAL!
4 years, 2 months ago (2016-10-07 17:50:25 UTC) #8
skym
lgtm https://codereview.chromium.org/2399953002/diff/40001/components/sync/BUILD.gn File components/sync/BUILD.gn (right): https://codereview.chromium.org/2399953002/diff/40001/components/sync/BUILD.gn#newcode64 components/sync/BUILD.gn:64: "api_impl/attachments/task_queue.cc", I'm still skeptical this is needed. https://codereview.chromium.org/2399953002/diff/40001/components/sync/BUILD.gn#newcode541 ...
4 years, 2 months ago (2016-10-07 18:22:16 UTC) #9
maxbogue
https://codereview.chromium.org/2399953002/diff/40001/components/sync/BUILD.gn File components/sync/BUILD.gn (right): https://codereview.chromium.org/2399953002/diff/40001/components/sync/BUILD.gn#newcode64 components/sync/BUILD.gn:64: "api_impl/attachments/task_queue.cc", On 2016/10/07 18:22:16, skym wrote: > I'm still ...
4 years, 2 months ago (2016-10-07 19:21:50 UTC) #10
maxbogue
TBR thakis@ for chrome/ and sdefresne@ for components/ since this is a simple refactor.
4 years, 2 months ago (2016-10-07 19:22:47 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2399953002/60001
4 years, 2 months ago (2016-10-07 19:23:56 UTC) #16
Nico
chrome/ lgtm
4 years, 2 months ago (2016-10-07 19:41:10 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-07 20:26:20 UTC) #19
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/7ed9ccefbec84b7e228a415449876a9bb5b3e105 Cr-Commit-Position: refs/heads/master@{#423954}
4 years, 2 months ago (2016-10-07 20:30:03 UTC) #21
skym
4 years, 2 months ago (2016-10-07 20:43:23 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/2399953002/diff/40001/components/sync/BUILD.gn
File components/sync/BUILD.gn (right):

https://codereview.chromium.org/2399953002/diff/40001/components/sync/BUILD.g...
components/sync/BUILD.gn:541: "//components/sync/engine_impl/attachments/proto",
On 2016/10/07 19:21:50, maxbogue wrote:
> On 2016/10/07 18:22:16, skym wrote:
> > ...Shouldn't the proto get moved out of an *_impl area?
> 
> It's a proto only used for persisting to disk. It's not part of any
interfaces.

Why is it in public_deps then?

Powered by Google App Engine
This is Rietveld 408576698