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

Issue 601553004: Refactor FakeAttachmentStore (Closed)

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

Refactor FakeAttachmentStore Refactor FakeAttachmentStore into AttachmentStoreProxy and InMemoryAttachmentStore backend. Break AttachmentStore interface into AttachmentStoreBase (common interface for backends) and AttachmentStore (referenced by datatype and AttachmentService). BUG= R=maniscalco@chromium.org Committed: https://crrev.com/6ae2b341c73909cf902078446346d6c900273409 Cr-Commit-Position: refs/heads/master@{#297339}

Patch Set 1 #

Total comments: 26

Patch Set 2 : Changes after feedback. Handle unittest. #

Total comments: 2

Patch Set 3 : Newline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -491 lines) Patch
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 chunk +0 lines, -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/sync_driver/generic_change_processor_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M sync/BUILD.gn View 1 4 chunks +11 lines, -8 lines 0 comments Download
M sync/api/attachments/attachment_store.h View 1 3 chunks +18 lines, -4 lines 0 comments Download
M sync/api/attachments/attachment_store.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
D sync/api/attachments/fake_attachment_store.h View 1 chunk +0 lines, -60 lines 0 comments Download
D sync/api/attachments/fake_attachment_store.cc View 1 chunk +0 lines, -128 lines 0 comments Download
D sync/api/attachments/fake_attachment_store_unittest.cc View 1 chunk +0 lines, -257 lines 0 comments Download
M sync/internal_api/attachments/attachment_service_impl.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M sync/internal_api/attachments/attachment_service_impl_unittest.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
A sync/internal_api/attachments/attachment_store_handle.cc View 1 1 chunk +57 lines, -0 lines 0 comments Download
A sync/internal_api/attachments/attachment_store_handle_unittest.cc View 1 1 chunk +148 lines, -0 lines 0 comments Download
A sync/internal_api/attachments/in_memory_attachment_store.cc View 1 chunk +80 lines, -0 lines 0 comments Download
A + sync/internal_api/attachments/in_memory_attachment_store_unittest.cc View 8 chunks +19 lines, -17 lines 0 comments Download
A sync/internal_api/public/attachments/attachment_store_handle.h View 1 1 chunk +66 lines, -0 lines 0 comments Download
A sync/internal_api/public/attachments/in_memory_attachment_store.h View 1 1 chunk +43 lines, -0 lines 0 comments Download
M sync/sync.gyp View 1 3 chunks +10 lines, -8 lines 0 comments Download
M sync/sync_tests.gypi View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (1 generated)
pavely
PTAL. Here is how classes will look like: http://www.plantuml.com/plantuml/png/VP3D2i8m3CVlVOgS1ziJU75uyJ0Gz0LY6ntgcb4ZMDHtjp9w2Qsd4FB_-14-NiWAh4NGZXDvsGi7wl5EPaPxnJF1m8vkXp4GEdWPNWmR59GuKzvLG18213fPVdWXPpwc8jm5ViRVERVrQP9tkc_h1veuH6LFpW8whDvjgvkqi2XQSAgHDGfJYe7cZoF_3vgkqn1V
6 years, 2 months ago (2014-09-29 18:17:32 UTC) #1
maniscalco
Nice work. Here's my feedback. Some of this we talked about in person already. https://codereview.chromium.org/601553004/diff/1/sync/api/attachments/attachment_store.h ...
6 years, 2 months ago (2014-09-29 20:57:53 UTC) #2
pavely
PTAL https://codereview.chromium.org/601553004/diff/1/sync/api/attachments/attachment_store.h File sync/api/attachments/attachment_store.h (right): https://codereview.chromium.org/601553004/diff/1/sync/api/attachments/attachment_store.h#newcode28 sync/api/attachments/attachment_store.h:28: class SYNC_EXPORT AttachmentStoreBase { It is base class ...
6 years, 2 months ago (2014-09-29 23:27:08 UTC) #3
maniscalco
LGTM with one nit. https://codereview.chromium.org/601553004/diff/1/sync/api/attachments/attachment_store.h File sync/api/attachments/attachment_store.h (right): https://codereview.chromium.org/601553004/diff/1/sync/api/attachments/attachment_store.h#newcode28 sync/api/attachments/attachment_store.h:28: class SYNC_EXPORT AttachmentStoreBase { On ...
6 years, 2 months ago (2014-09-30 00:26:13 UTC) #4
pavely
https://codereview.chromium.org/601553004/diff/20001/sync/internal_api/attachments/attachment_service_impl_unittest.cc File sync/internal_api/attachments/attachment_service_impl_unittest.cc (right): https://codereview.chromium.org/601553004/diff/20001/sync/internal_api/attachments/attachment_service_impl_unittest.cc#newcode156 sync/internal_api/attachments/attachment_service_impl_unittest.cc:156: class AttachmentServiceImplTest : public testing::Test, On 2014/09/30 00:26:13, maniscalco ...
6 years, 2 months ago (2014-09-30 00:30:38 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/601553004/40001
6 years, 2 months ago (2014-09-30 00:31:59 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001) as fe15e6882cf934d93691953d83510059b2afac2f
6 years, 2 months ago (2014-09-30 01:58:06 UTC) #8
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/6ae2b341c73909cf902078446346d6c900273409 Cr-Commit-Position: refs/heads/master@{#297339}
6 years, 2 months ago (2014-09-30 01:58:48 UTC) #9
sergeyv
6 years, 2 months ago (2014-09-30 07:47:10 UTC) #10
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/619563002/ by sergeyv@chromium.org.

The reason for reverting is: Speculative revert:
looks like it causes failures on the Linux asan:
http://build.chromium.org/p/chromium.memory/builders/Linux%20ASan%20LSan%20Te....

Powered by Google App Engine
This is Rietveld 408576698