Ensure maskable icons are padded correctly in the A2HS prompt.
This CL refactors the handling of icons in AddToHomescreenDataFetcher so that WebAPKs which have maskable icons have that icon correctly masked in the A2HS prompt, but still use the raw icon in the WebAPK itself. Using the raw icon in the WebAPK is necessary to ensure that the OS and WebAPK server always have the original icon on which to apply their own masks. However, that original icon is inappropriate to show the user in the A2HS prompt, so ensure we mask it manually before it is shown. BUG=977173 Change-Id: Ib3e469d31e236ef961f72d25dfb2170723fa73c4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1869151 Commit-Queue: Dominick Ng <dominickn@chromium.org> Commit-Queue: Mehran Mahmoudi <mahmoudi@chromium.org> Reviewed-by:Mehran Mahmoudi <mahmoudi@chromium.org> Auto-Submit: Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#708049}
Showing
This diff is collapsed.
Please register or sign in to comment