Chromium Code Reviews
Description[Sync] Adjust new entity version before commit.
Version of newly created entity on the client is set to -1. Server
doesn't accept entity with version -1, it responds with MIGRATION_DONE
error. commit_util.cc:BuildCommitItem() performs translation of
version -1 to 0 and in addition verifies that id is consistent with
version.
In this change:
- Set version to 0 in ModelTypeWorker for newly created entities
- Rename couple of functions
R=maxbogue@chromium.org
BUG=
Committed: https://crrev.com/4c454e24700b8216969459011619c66bf1a66de0
Cr-Commit-Position: refs/heads/master@{#387972}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Move comment. #Patch Set 3 : Rebase #
Messages
Total messages: 9 (3 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||