Descriptionmanifest: allow the icon downloader to choose non-square icons
If the icon selector has allowed a non-square icon through (because of any
being the provided size in the manifest) then the downloader should not prevent
the icon from be chosen as long as both dimensions are greater than the
minimum size.
Change this so that non-square icons are allowed as a fallback option if
no square icon was found. The most squarish one which meets the minimum
size criteria is picked.
BUG=533184
Committed: https://crrev.com/79d995190f907a28b0e654c4f4a980b8add47540
Cr-Commit-Position: refs/heads/master@{#350523}
Patch Set 1 #Patch Set 2 : Rebase on latest #
Total comments: 4
Patch Set 3 : Switch to using ratios #
Total comments: 2
Patch Set 4 : Cleanup and fix unit tests #Patch Set 5 : Fix compile #
Total comments: 2
Patch Set 6 : Add check for width being greater than ideal #
Messages
Total messages: 17 (4 generated)
|