This came up in the code review for
LargeIconService::GetLargeIconOrFallbackStyleFromGoogleServerSkippingLocalCache()
If FaviconService::GetRawFaviconForPageURL() is called with:
desired_size_in_pixel = 0
icon_types = FAVICON | TOUCH_ICON | TOUCH_PRECOMPOSED_ICON
The page_url is mapped to both a TOUCH_ICON and a FAVICON
The bitmap of type FAVICON is larger than the bitmap of type TOUCH_ICON
The FaviconService::GetRawFaviconForPageURL() call will return the TOUCH_ICON even though it is the smaller of the two icons.
This is counterintuitive and unfortunate. It would be nice if FaviconService::GetRawFaviconForPageURL() returned the largest icon when a parameter of |desired_size_in_pixel| = 0 is passed
Comment 1 by mastiz@chromium.org
, Apr 18 2017