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

Unified Diff: sync/engine/build_commit_command.cc

Issue 23694004: sync: Remove IDs from OrderedCommitSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | « no previous file | sync/engine/commit.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/build_commit_command.cc
diff --git a/sync/engine/build_commit_command.cc b/sync/engine/build_commit_command.cc
index 53c522122b78f400a1f5da3a19d3fa5dbdfd2654..70333c681ef479317b681eead00ed6f05b6d7a73 100644
--- a/sync/engine/build_commit_command.cc
+++ b/sync/engine/build_commit_command.cc
@@ -119,10 +119,10 @@ SyncerError BuildCommitCommand::ExecuteImpl(SyncSession* session) {
AddClientConfigParamsToMessage(session, commit_message);
for (size_t i = 0; i < batch_commit_set_.Size(); i++) {
- Id id = batch_commit_set_.GetCommitIdAt(i);
+ int64 handle = batch_commit_set_.GetCommitHandleAt(i);
sync_pb::SyncEntity* sync_entry = commit_message->add_entries();
- Entry meta_entry(trans_, syncable::GET_BY_ID, id);
+ Entry meta_entry(trans_, syncable::GET_BY_HANDLE, handle);
CHECK(meta_entry.good());
DCHECK_NE(0UL,
« no previous file with comments | « no previous file | sync/engine/commit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698