[BMO] Migrating AppLauncherHandler's app list, launch, setLaunch to BMO
This change starts the migration of the chrome://apps UI to support BMO. 1. Updates the 'population' logic to create items for WebApps fetched through the AppRegistrar for display in chrome://apps 2. Updates the 'launch' logic to correctly launch webapps populated through BMO. 3. Update the 'setLaunchType' event logic to set the display mode in the BMO system. 4. NOTIMPLEMENTED() calls on all methods where BMO is not supported (and it is turned on). One nuance with this change is that the icons for the BMO web apps do not display correctly in chrome://apps. This is because the icon is pointing to the remote source of the icon, which violates the cross origin policy of the chrome://apps page. It is currently unclear what should be done here, so leaving that as broken for now. A nuance on that nuance is that when BMO is not turned on, it still serves the extensions-backed web apps through its abstraction layers. This is good for us for testing, and allows most of the code in this patch to be used & tested when chrome://apps is used. However, it also means that icons for all webapps would no longer show up, given the nuance above. So to prevent this breakage, this is special-cased (where BMO is turned off but we are serving a web app) and the old extentions- backed icon url is used. This allows the icon to still work when BMO is off. Doc: https://docs.google.com/document/d/1BcDJHd0gEt5oImBsNbgRg7Fz9T3I-YO7KkUuSLHQSYg/edit Bug: 1009302 Change-Id: Ib2f05e6be0b856fbe1d68adc8d1dc6ef0db6f11d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2090492Reviewed-by:calamity <calamity@chromium.org> Reviewed-by:
Alexey Baskakov <loyso@chromium.org> Reviewed-by:
Eric Willigers <ericwilligers@chromium.org> Commit-Queue: Daniel Murphy <dmurph@chromium.org> Cr-Commit-Position: refs/heads/master@{#756717}
Showing
This diff is collapsed.
Please register or sign in to comment