summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/attachments/attachment_service_impl.cc
diff options
context:
space:
mode:
authorpavely <pavely@chromium.org>2015-03-25 00:44:33 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-25 07:45:14 +0000
commit66175b0031526dd7d2575b6bcce62a1c5c2db580 (patch)
tree073182560c2b7e8c5a01c0809884f5853e0e2619 /sync/internal_api/attachments/attachment_service_impl.cc
parent42b56f358e424631639597891908c2ee3b0e7454 (diff)
downloadchromium_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.cc7
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);
}
}