Description[Sync] Gracefully handle writing to a node when the cryptographer is not ready.
Due to allowing users to configure without a passphrase if they don't have
passwords enabled, we can get into a situation where we require encryption of
datatypes, but don't have the cryptographer enabled. When in this situation
we need to ensure we don't corrupt any data. Once the user sets their
passphrase, we will reencrypt everything, which will overwrite unsynced entries
with their encrypted versions, allowing the sync cycle to finish.
BUG=93100
TEST=sync_unit_tests --gtest_filter="*GetCommitIdsFilterEntries*"
Also to manually test: set up sync on a machine with an explicit passphrase. Set up sync without passwords enabled on a separate machine and don't enter the passphrase. Enable encryption on the first client. Attempt to add a bookmark on the second client.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98758
Patch Set 1 #Patch Set 2 : Don't upload unsynced entries needing encryption #Patch Set 3 : Comment #Patch Set 4 : Ensure ReEncryptEverything is called properly #Patch Set 5 : . #Patch Set 6 : Rebase #
Total comments: 4
Patch Set 7 : Reviewer comments #
Messages
Total messages: 4 (0 generated)
|