Description[Sync] Erase sync DB when corrupted
Directory now registers to be notified of catastrophic sync DB errors.
Upon notification, Directory triggers an unrecoverable sync error which
causes ProfileSyncService to delete the sync DB.
Add integration test that verifies the sync DB is deleted when DB
corruption is detected.
Remove unused member variable allow_failure_for_test_ from
DirectoryBackingStore.
Add MockUnrecoverableErrorHandler to assist in writing tests for
Directory.
BUG=470993
Committed: https://crrev.com/90a7f8d3e3b3a2aac43e71a93eac2731f084945c
Cr-Commit-Position: refs/heads/master@{#327120}
Committed: https://crrev.com/8382e4e5dce071e21f1297df234a17bdf7a5ed32
Cr-Commit-Position: refs/heads/master@{#327766}
Patch Set 1 #Patch Set 2 : Remove an unnecessary include. #
Total comments: 8
Patch Set 3 : Improve comments based on CR feedback #Patch Set 4 : Apply CR feedback #Patch Set 5 : Reduce test runtime by writing fewer bookmarks #Messages
Total messages: 25 (7 generated)
|