summaryrefslogtreecommitdiffstats
path: root/sync/api
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/api
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/api')
-rw-r--r--sync/api/attachments/attachment_id.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sync/api/attachments/attachment_id.h b/sync/api/attachments/attachment_id.h
index 1c53355..039d386 100644
--- a/sync/api/attachments/attachment_id.h
+++ b/sync/api/attachments/attachment_id.h
@@ -75,6 +75,8 @@ class SYNC_EXPORT AttachmentId {
AttachmentId(sync_pb::AttachmentIdProto* proto);
};
+// All public interfaces use AttachmentIdList. AttachmentIdSet is used in
+// implementations of algorithms where set properties are needed.
typedef std::vector<AttachmentId> AttachmentIdList;
typedef std::set<AttachmentId> AttachmentIdSet;