Fix sync metadata persistence for pseudo-USS
All changes to the in-memory sync metadata should be reflected in persisted sync metadata, and a bug in the implementation prevented that. The end result is that all sync entities would be refetched on every restart, for the experimental pseudo-USS codepath (behind feature toggle). Given that we've already done some experimentation on canary channel, we introduce the logic to recover cleanly from the resulting inconsistent state, which seems like a desirable safeguard anyway. Bug: 870624 Change-Id: I28b170a6ff62ecb78c94c7026796df56687507dc Reviewed-on: https://chromium-review.googlesource.com/c/1267498 Commit-Queue: Mikel Astiz <mastiz@chromium.org> Reviewed-by:Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#597516}
Showing
Please register or sign in to comment