WebApp: Improve WebAppSyncBridge::UpdateSync to use both app states.
Improve WebAppSyncBridge::UpdateSync to use both current_state (before commit) and new_state (to be commit). In the future, it will help to skip local updates which don't touch sync data. Add WebAppSyncBridge::CommitUpdate unit tests (a.k.a. Local Changes). These tests is a promised follow up for this CL: https://chromium-review.googlesource.com/c/chromium/src/+/1830494 This code is disabled by default behind kDesktopPWAsWithoutExtensions and kDesktopPWAsUSS base features. Bug: 860583 Change-Id: I51dfda8b6364e15f9b5eb398321d6010241b0ae9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1914005Reviewed-by:Marc Treib <treib@chromium.org> Commit-Queue: Alexey Baskakov <loyso@chromium.org> Cr-Commit-Position: refs/heads/master@{#715133}
Showing
This diff is collapsed.
Please register or sign in to comment