Make ApkWebAppInstallService handle upgrades to and from web apps.
An ARC app may begin as a non-web app, but then be upgraded to be a web app. The opposite may also happen: an ARC app may be a web app, and then be upgraded to not be a web app. For each of these scenarios, we need to ensure that the browser-side web app is appropriately installed or uninstalled. This CL adds a new override of ArcAppListPrefs::OnPackageModified to listen for apps that are upgraded into or from being web apps, and trigger the appropriate installation or uninstallation. A new test is added to verify the behaviour. BUG=944972 Change-Id: I9e8cd04c0ceb87ca678eac0896ebdf6dde48938b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1536041Reviewed-by:Ben Wells <benwells@chromium.org> Reviewed-by:
Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#647107}
Showing
Please register or sign in to comment