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

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: Attempt to fix win compile Created 7 years, 2 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
« no previous file with comments | « sync/engine/get_commit_ids.h ('k') | sync/engine/process_commit_response_command.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « sync/engine/get_commit_ids.h ('k') | sync/engine/process_commit_response_command.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698