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

Issue 272043002: Invoke AttachmentUploader and update AttachmentIds. (Closed)

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

Description

Invoke AttachmentUploader and update AttachmentIds. When GenericChangeProcessor calls AttachmentService::StoreAttachments AttachmentService invokes AttachmentUploader to upload attachments. When attachment gets uploaded AttachmentService invokes AttachmentService::Delegate::OnAttachmentUploaded. GenericChangeProcessor implements AttachmentService::Delegate for now. When attachment is uploaded it call WriteTransaction to update entries referring this attachment with new attachment id. R=maniscalco@chromium.org BUG=371629 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271578

Patch Set 1 #

Total comments: 39

Patch Set 2 : Feedback + unittests. #

Patch Set 3 : Rebase #

Patch Set 4 : Fix build after rebase #

Patch Set 5 : Different way to initialize AttachmentService. #

Patch Set 6 : Initialize through SyncApiComponentFactory #

Total comments: 12

Patch Set 7 : Updates. #

Patch Set 8 : Rebase and fix for components_unittests #

Patch Set 9 : Rebase #

Patch Set 10 : Fix iOS build #

Patch Set 11 : Another iOS build fix. #

Patch Set 12 : Fix Android build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -80 lines) Patch
M chrome/browser/sync/glue/search_engine_data_type_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/shared_change_processor.cc View 1 2 3 4 5 6 2 chunks +6 lines, -20 lines 0 comments Download
M chrome/browser/sync/glue/ui_data_type_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 4 5 6 7 2 chunks +18 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_mock.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_mock.cc View 1 2 3 4 5 6 2 chunks +6 lines, -9 lines 0 comments Download
M components/sync_driver/fake_generic_change_processor.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -2 lines 0 comments Download
M components/sync_driver/fake_generic_change_processor.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -3 lines 0 comments Download
M components/sync_driver/generic_change_processor.h View 1 2 3 4 5 4 chunks +7 lines, -1 line 0 comments Download
M components/sync_driver/generic_change_processor.cc View 1 2 3 4 5 3 chunks +9 lines, -2 lines 0 comments Download
M components/sync_driver/generic_change_processor_factory.h View 1 2 3 4 5 6 3 chunks +5 lines, -1 line 0 comments Download
M components/sync_driver/generic_change_processor_factory.cc View 1 2 3 4 5 1 chunk +11 lines, -12 lines 0 comments Download
M components/sync_driver/generic_change_processor_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +74 lines, -6 lines 0 comments Download
M components/sync_driver/sync_api_component_factory.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -5 lines 0 comments Download
M sync/api/attachments/attachment_service.h View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M sync/api/attachments/attachment_service_impl.h View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download
M sync/api/attachments/attachment_service_impl.cc View 1 2 3 4 5 6 4 chunks +24 lines, -5 lines 0 comments Download
M sync/internal_api/public/write_transaction.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M sync/internal_api/write_transaction.cc View 1 2 chunks +14 lines, -0 lines 0 comments Download
M sync/syncable/directory.h View 1 chunk +7 lines, -0 lines 0 comments Download
M sync/syncable/directory.cc View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
M sync/syncable/directory_unittest.cc View 1 2 3 4 5 6 7 1 chunk +43 lines, -0 lines 0 comments Download
M sync/syncable/mutable_entry.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M sync/syncable/mutable_entry.cc View 1 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
pavely
PTAL. I'll add test for FakeAttachmentService portion once FakeAttachmentService is moved and renamed.
6 years, 7 months ago (2014-05-09 00:07:35 UTC) #1
maniscalco
Very nice! I've got some questions and feedback. Let's chat in person about a few ...
6 years, 7 months ago (2014-05-09 18:12:11 UTC) #2
pavely
PTAL https://codereview.chromium.org/272043002/diff/1/sync/api/attachments/attachment_service.h File sync/api/attachments/attachment_service.h (right): https://codereview.chromium.org/272043002/diff/1/sync/api/attachments/attachment_service.h#newcode59 sync/api/attachments/attachment_service.h:59: class Delegate { On 2014/05/09 18:12:11, maniscalco wrote: ...
6 years, 7 months ago (2014-05-13 23:06:43 UTC) #3
pavely
Nick, take a look at last patch. This is what we discussed in the morning. ...
6 years, 7 months ago (2014-05-14 21:57:24 UTC) #4
pavely
Yet another way to initialize. PTAL.
6 years, 7 months ago (2014-05-15 18:44:49 UTC) #5
pavely
The common problem of both of these approaches is that GCP needs AS pointer in ...
6 years, 7 months ago (2014-05-15 19:26:51 UTC) #6
maniscalco
I agree that there isn't an ideal way to construct these two classes, but overall, ...
6 years, 7 months ago (2014-05-15 20:09:27 UTC) #7
pavely
https://codereview.chromium.org/272043002/diff/120001/components/sync_driver/generic_change_processor_factory.h File components/sync_driver/generic_change_processor_factory.h (right): https://codereview.chromium.org/272043002/diff/120001/components/sync_driver/generic_change_processor_factory.h#newcode39 components/sync_driver/generic_change_processor_factory.h:39: SyncApiComponentFactory* sync_factory); On 2014/05/15 20:09:28, maniscalco wrote: > Can ...
6 years, 7 months ago (2014-05-16 00:19:10 UTC) #8
maniscalco
lgtm
6 years, 7 months ago (2014-05-16 00:28:24 UTC) #9
pavely
Adding Tim as Nick is not on OWNERS yet. I'll get a change to put ...
6 years, 7 months ago (2014-05-16 00:45:35 UTC) #10
pavely
Rebased and fixed components_unittests
6 years, 7 months ago (2014-05-16 18:45:15 UTC) #11
pavely
The CQ bit was checked by pavely@chromium.org
6 years, 7 months ago (2014-05-19 22:07:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pavely@chromium.org/272043002/200001
6 years, 7 months ago (2014-05-19 22:08:21 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-19 22:08:24 UTC) #14
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 7 months ago (2014-05-19 22:08:24 UTC) #15
pavely
Nicolas, Tim is out and Nick is not on OWNERS. Could you lgtm?
6 years, 7 months ago (2014-05-19 22:11:14 UTC) #16
Nicolas Zea
lgtm
6 years, 7 months ago (2014-05-20 00:11:18 UTC) #17
pavely
The CQ bit was checked by pavely@chromium.org
6 years, 7 months ago (2014-05-20 00:11:43 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pavely@chromium.org/272043002/240001
6 years, 7 months ago (2014-05-20 00:12:05 UTC) #19
commit-bot: I haz the power
6 years, 7 months ago (2014-05-20 06:14:58 UTC) #20
Message was sent while issue was closed.
Change committed as 271578

Powered by Google App Engine
This is Rietveld 408576698