DPWA: Add Web App Manifest updates for Shortcuts Menu
This CL adds support for Shortcuts Menu to be updated when an installed PWA's manifest is updated. Code in manifest_update_task.cc detects changes to the shortcuts member of the manifest. It then triggers a reinstallation of the PWA per the new info in the manifest. As part of this flow we Unregister the existing Shortcuts Menu with the OS and then Reregister it as part of the reinstallation flow. To help detect changes in the manifest, this CL adds new methods to AppRegistrar that help read existing ShortcutsMenu related info. These methods have been implemented for both BookmarkApp and WebApp systems. Testing: This CL adds Shortcuts Menu related browser tests in manifest_update_manager_browsertest.cc. It also adds new tests in web_app_install_task_unittest.cc for invoking UpdateWebAppFromInfo with Shortcuts Menu data. Design doc: https://docs.google.com/document/d/1KhHWikx1z-604LIjDKEdnL9MyezJklxM8kEYNnMLIQs/ Bug: 1087212 Change-Id: Ie825494ab137724e07e55bc12098cbfb386fb6ba Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2244111Reviewed-by:Alexey Baskakov <loyso@chromium.org> Reviewed-by:
Alan Cutter <alancutter@chromium.org> Commit-Queue: Rahul Singh <rahsin@microsoft.com> Cr-Commit-Position: refs/heads/master@{#780214}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment