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

Issue 307783002: Instantiate AttachmentDownloader and use it in AttachmentServiceImpl (Closed)

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

Description

Instantiate AttachmentDownloader and use it in AttachmentServiceImpl GetOrDownloadAttachments creates state object that tracks set of attachments for which requests are still pending. Once AttachmentStore::Read finishes AttachmentServiceImpl calls AttachmentDownloader to download attachments that were not found locally. Once all calls to Downloader finish consumer callback is called with results. I used AttachmentIdSet in this code but didn't update AttachmentIdList to AttachmentIdSet in other places. I'd rather do it in separate change. R=maniscalco@chromium.org BUG=376073 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274164

Patch Set 1 #

Total comments: 37

Patch Set 2 : Fix issues after Nick's feedback. #

Patch Set 3 : Fix components unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -17 lines) Patch
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 chunks +10 lines, -5 lines 0 comments Download
M components/sync_driver/generic_change_processor_unittest.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M sync/api/attachments/attachment_id.h View 2 chunks +2 lines, -0 lines 0 comments Download
M sync/api/attachments/attachment_service_impl.h View 4 chunks +11 lines, -1 line 0 comments Download
M sync/api/attachments/attachment_service_impl.cc View 1 5 chunks +136 lines, -11 lines 0 comments Download
A sync/api/attachments/attachment_service_impl_unittest.cc View 1 1 chunk +249 lines, -0 lines 0 comments Download
M sync/sync_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
pavely
6 years, 6 months ago (2014-05-28 23:30:32 UTC) #1
maniscalco
Very nice! Here's my feedback. It's mostly nits. https://codereview.chromium.org/307783002/diff/1/chrome/browser/sync/profile_sync_components_factory_impl.cc File chrome/browser/sync/profile_sync_components_factory_impl.cc (right): https://codereview.chromium.org/307783002/diff/1/chrome/browser/sync/profile_sync_components_factory_impl.cc#newcode574 chrome/browser/sync/profile_sync_components_factory_impl.cc:574: // ...
6 years, 6 months ago (2014-05-29 22:35:54 UTC) #2
pavely
PTAL https://codereview.chromium.org/307783002/diff/1/chrome/browser/sync/profile_sync_components_factory_impl.cc File chrome/browser/sync/profile_sync_components_factory_impl.cc (right): https://codereview.chromium.org/307783002/diff/1/chrome/browser/sync/profile_sync_components_factory_impl.cc#newcode574 chrome/browser/sync/profile_sync_components_factory_impl.cc:574: // AttachmentUpload instead of creating a new one ...
6 years, 6 months ago (2014-05-30 00:50:07 UTC) #3
maniscalco
lgtm https://codereview.chromium.org/307783002/diff/1/sync/api/attachments/attachment_service_impl.cc File sync/api/attachments/attachment_service_impl.cc (right): https://codereview.chromium.org/307783002/diff/1/sync/api/attachments/attachment_service_impl.cc#newcode58 sync/api/attachments/attachment_service_impl.cc:58: std::inserter(incomplete_attachments_, incomplete_attachments_.end())); SGTM, std::inserter seems like the way ...
6 years, 6 months ago (2014-05-30 16:08:14 UTC) #4
pavely
The CQ bit was checked by pavely@chromium.org
6 years, 6 months ago (2014-05-30 16:30:11 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pavely@chromium.org/307783002/20001
6 years, 6 months ago (2014-05-30 16:32:26 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-05-31 02:27:36 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-31 02:37:32 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/19648)
6 years, 6 months ago (2014-05-31 02:37:32 UTC) #9
pavely
The CQ bit was checked by pavely@chromium.org
6 years, 6 months ago (2014-06-01 16:44:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pavely@chromium.org/307783002/20002
6 years, 6 months ago (2014-06-01 16:44:49 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 05:33:17 UTC) #12
Message was sent while issue was closed.
Change committed as 274164

Powered by Google App Engine
This is Rietveld 408576698