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

Issue 710073003: Store attachment crc in AttachmentStore (Closed)

Created:
6 years, 1 month ago by pavely
Modified:
6 years, 1 month ago
Reviewers:
maniscalco
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+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

Store attachment crc in AttachmentStore In this change: - Add crc into Attachment class - Rename Attachment's Create/CreateWithId to CreateNew/RestoreExisting. - Refactor how AttachmentDownloader extracts and checks crc. Now it also needs to pass crc to Attachment construction - Store crc in RecordMetadata - Check crc when reading attachment from AttachmentStore. BUG=417794 R=maniscalco@chromium.org Committed: https://crrev.com/0c166910d0276c52650008f0d9464be27d146782 Cr-Commit-Position: refs/heads/master@{#304123}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase #

Total comments: 39

Patch Set 3 : Changes after feedback #

Patch Set 4 : Fix link errors #

Patch Set 5 : Rebase. Add comment in attachment_util.h. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -106 lines) Patch
M sync/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M sync/api/attachments/attachment.h View 1 2 2 chunks +13 lines, -4 lines 0 comments Download
M sync/api/attachments/attachment.cc View 1 2 3 chunks +12 lines, -6 lines 0 comments Download
M sync/api/attachments/attachment_unittest.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M sync/internal_api/attachments/attachment_downloader_impl.cc View 1 2 6 chunks +42 lines, -38 lines 0 comments Download
M sync/internal_api/attachments/attachment_downloader_impl_unittest.cc View 5 chunks +37 lines, -10 lines 0 comments Download
M sync/internal_api/attachments/attachment_service_impl_unittest.cc View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M sync/internal_api/attachments/attachment_store_test_template.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M sync/internal_api/attachments/attachment_uploader_impl.cc View 1 2 3 chunks +4 lines, -10 lines 0 comments Download
M sync/internal_api/attachments/attachment_uploader_impl_unittest.cc View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
A sync/internal_api/attachments/attachment_util.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M sync/internal_api/attachments/fake_attachment_downloader.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M sync/internal_api/attachments/on_disk_attachment_store.cc View 1 2 3 chunks +29 lines, -8 lines 0 comments Download
M sync/internal_api/attachments/on_disk_attachment_store_unittest.cc View 1 2 2 chunks +39 lines, -0 lines 0 comments Download
M sync/internal_api/attachments/proto/attachment_store.proto View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M sync/internal_api/public/attachments/attachment_downloader_impl.h View 1 2 3 chunks +14 lines, -13 lines 0 comments Download
M sync/internal_api/public/attachments/attachment_uploader_impl.h View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
A sync/internal_api/public/attachments/attachment_util.h View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
M sync/sync.gyp View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
pavely
https://codereview.chromium.org/710073003/diff/1/sync/api/attachments/attachment.h File sync/api/attachments/attachment.h (right): https://codereview.chromium.org/710073003/diff/1/sync/api/attachments/attachment.h#newcode42 sync/api/attachments/attachment.h:42: static Attachment RestoreExisting( I wanted to generalize name since ...
6 years, 1 month ago (2014-11-10 23:45:29 UTC) #1
maniscalco
Nice work! Here's my feedback. It's mostly nits. https://codereview.chromium.org/710073003/diff/1/sync/api/attachments/attachment.h File sync/api/attachments/attachment.h (right): https://codereview.chromium.org/710073003/diff/1/sync/api/attachments/attachment.h#newcode42 sync/api/attachments/attachment.h:42: static ...
6 years, 1 month ago (2014-11-11 00:44:55 UTC) #2
pavely
PTAL https://codereview.chromium.org/710073003/diff/1/sync/api/attachments/attachment.h File sync/api/attachments/attachment.h (right): https://codereview.chromium.org/710073003/diff/1/sync/api/attachments/attachment.h#newcode42 sync/api/attachments/attachment.h:42: static Attachment RestoreExisting( On 2014/11/11 00:44:53, maniscalco wrote: ...
6 years, 1 month ago (2014-11-11 22:27:15 UTC) #3
maniscalco
LGTM. Happy to chat more about sync/api/attachments/DEPS if you want go that route. https://codereview.chromium.org/710073003/diff/20001/sync/internal_api/attachments/proto/attachment_store.proto File ...
6 years, 1 month ago (2014-11-11 23:05:32 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/710073003/80001
6 years, 1 month ago (2014-11-13 22:22:14 UTC) #6
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 1 month ago (2014-11-14 00:23:30 UTC) #7
commit-bot: I haz the power
6 years, 1 month ago (2014-11-14 00:24:09 UTC) #8
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0c166910d0276c52650008f0d9464be27d146782
Cr-Commit-Position: refs/heads/master@{#304123}

Powered by Google App Engine
This is Rietveld 408576698