Description[Sync] Fix crash in GCP when adding encrypted entry that already exists.
When model type's syncable service adds entry, GenericChangeProcessor
first looks up if entry with given client tag hash already exists.
WriteNode::InitUniqueByCreationImpl looks up entry, but doesn't decrypt
if it is found. BaseNode::GetEntitySpecifics() expects cached decrypted
entry's specifics for encrytped entry which causes DCHECK.
The fix is to call DecryptIfNecessary when existing entry is found in
WriteNode::InitUniqueByCreationImpl.
BUG=601257
R=zea@chromium.org
Committed: https://crrev.com/194ec8ddbc3a77d4af0b7455cd9b85305a134e1e
Cr-Commit-Position: refs/heads/master@{#389801}
Patch Set 1 #
Total comments: 3
Patch Set 2 : Removed HandleDecryptError() #
Messages
Total messages: 10 (4 generated)
|