Index: sync/engine/build_commit_command.cc |
diff --git a/sync/engine/build_commit_command.cc b/sync/engine/build_commit_command.cc |
index 7ecf152cc18c95549a674ff2c9f1a0d738e0a661..9d1a4b961dfe3c0e2dd53f013e2096f62369a1bf 100644 |
--- a/sync/engine/build_commit_command.cc |
+++ b/sync/engine/build_commit_command.cc |
@@ -197,7 +197,7 @@ SyncerError BuildCommitCommand::ExecuteImpl(SyncSession* session) { |
} else { |
if (meta_entry.Get(SPECIFICS).has_bookmark()) { |
// Common data in both new and old protocol. |
- const Id& prev_id = meta_entry.Get(syncable::PREV_ID); |
+ const Id& prev_id = meta_entry.GetPredecessorId(); |
string prev_id_string = |
prev_id.IsRoot() ? string() : prev_id.GetServerId(); |
sync_entry->set_insert_after_item_id(prev_id_string); |