Skip to content
Commit f9fe5dc9 authored by Ella Ge's avatar Ella Ge Committed by Chromium LUCI CQ
Browse files

Fix installing WebAPK with SVG icon

Installing WebAPK with SVG icon always failed because there is no
preferred size specified when downloading the SVG icon and it result
in an empty Bitmap and returns an error.

This CL creates a "WebappIcon" class that contains the url, purpose,
and usage of the icon. The purpose and usage are used to decide the
ideal size of it.

Bug: 1428668, 1444216
Change-Id: Ia0301ea7fef51b9a58d9fb9b217aed30e207fa0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4519242


Auto-Submit: Ella Ge <eirage@chromium.org>
Reviewed-by: default avatarRayan Kanso <rayankans@chromium.org>
Commit-Queue: Rayan Kanso <rayankans@chromium.org>
Reviewed-by: default avatarGlenn Hartmann <hartmanng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1143947}
parent f743ffb7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment