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

Unified Diff: sync/internal_api/attachments/attachment_service_impl.cc

Issue 1035573002: [Sync] Replace AttachmentIdSet with AttachmentIdList in interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes after Nick's feedback. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/attachments/attachment_service_impl.cc
diff --git a/sync/internal_api/attachments/attachment_service_impl.cc b/sync/internal_api/attachments/attachment_service_impl.cc
index e76151507fa8f99543951c3f79b9354669e34d32..2db63c3634f53f359f84d4178060ce66e7ded4cf 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);
}
}
« no previous file with comments | « sync/api/attachments/attachment_id.h ('k') | sync/internal_api/attachments/attachment_service_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698