diff options
author | pavely <pavely@chromium.org> | 2015-03-25 00:44:33 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-25 07:45:14 +0000 |
commit | 66175b0031526dd7d2575b6bcce62a1c5c2db580 (patch) | |
tree | 073182560c2b7e8c5a01c0809884f5853e0e2619 /sync/internal_api/attachments/attachment_service_impl.cc | |
parent | 42b56f358e424631639597891908c2ee3b0e7454 (diff) | |
download | chromium_src-66175b0031526dd7d2575b6bcce62a1c5c2db580.zip chromium_src-66175b0031526dd7d2575b6bcce62a1c5c2db580.tar.gz chromium_src-66175b0031526dd7d2575b6bcce62a1c5c2db580.tar.bz2 |
[Sync] Replace AttachmentIdSet with AttachmentIdList in interfaces.
Today both types are used on AttachmentService and other interfaces.
In this change I make all interfaces use AttachmentIdList.
AttachmentIdSet is only used in implementations and unittests.
R=maniscalco@chromium.org
BUG=
TEST=No observable behavior change.
Review URL: https://codereview.chromium.org/1035573002
Cr-Commit-Position: refs/heads/master@{#322130}
Diffstat (limited to 'sync/internal_api/attachments/attachment_service_impl.cc')
-rw-r--r-- | sync/internal_api/attachments/attachment_service_impl.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sync/internal_api/attachments/attachment_service_impl.cc b/sync/internal_api/attachments/attachment_service_impl.cc index e761515..2db63c3 100644 --- a/sync/internal_api/attachments/attachment_service_impl.cc +++ b/sync/internal_api/attachments/attachment_service_impl.cc @@ -273,14 +273,13 @@ void AttachmentServiceImpl::BeginUpload(const AttachmentId& attachment_id) { } void AttachmentServiceImpl::UploadAttachments( - const AttachmentIdSet& attachment_ids) { + const AttachmentIdList& attachment_ids) { DCHECK(CalledOnValidThread()); if (!attachment_uploader_.get()) { return; } - AttachmentIdSet::const_iterator iter = attachment_ids.begin(); - AttachmentIdSet::const_iterator end = attachment_ids.end(); - for (; iter != end; ++iter) { + for (auto iter = attachment_ids.begin(); iter != attachment_ids.end(); + ++iter) { upload_task_queue_->AddToQueue(*iter); } } |