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

Unified Diff: sync/engine/get_commit_ids.cc

Issue 25638003: sync: Implement per-type commit interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile warning Created 7 years, 3 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/engine/get_commit_ids.cc
diff --git a/sync/engine/get_commit_ids.cc b/sync/engine/get_commit_ids.cc
index cc437ce7d2fff8fee2290668401ed8c86e075798..3a87383d1bcab065282603fa9a7cc8d5c5195d19 100644
--- a/sync/engine/get_commit_ids.cc
+++ b/sync/engine/get_commit_ids.cc
@@ -506,25 +506,4 @@ void OrderCommitIds(
} // namespace
-void GetCommitIds(
- syncable::BaseTransaction* trans,
- ModelTypeSet requested_types,
- size_t commit_batch_size,
- sessions::OrderedCommitSet* ordered_commit_set) {
- for (ModelTypeSet::Iterator it = requested_types.First();
- it.Good(); it.Inc()) {
- DCHECK_LE(ordered_commit_set->Size(), commit_batch_size);
- if (ordered_commit_set->Size() >= commit_batch_size)
- break;
- size_t space_remaining = commit_batch_size - ordered_commit_set->Size();
- syncable::Directory::Metahandles out;
- GetCommitIdsForType(
- trans,
- it.Get(),
- space_remaining,
- &out);
- ordered_commit_set->AddCommitItems(out, it.Get());
- }
-}
-
} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698