[Suggested files] Use alternative chip icons.
Some of the existing file icons look bad in the chips, because the chips have a different background colour that results in them being low-contrast. This CL refactors the file_icon_util.* files to allow either the original or new icons to be retrieved. The main change is to split GetIconResourceIdForLocalFilePath into GetIconTypeForPath GetResourceIdForIconType GetChipResourceIdForIconType The former method took a file path, found correct Icon enum, then found the correct resource ID for the enum. The new methods separate out the enum-finding step from the resource- loading step, so that the Chip function can first try and return a chip-specific icon, and then fall back to the original icons if needed. Bug: 1034842 Change-Id: Ia7c3310c771993909f8d8b535229173bedb528d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2089182 Commit-Queue: Tony Yeoman <tby@chromium.org> Reviewed-by:Jenny Zhang <jennyz@chromium.org> Reviewed-by:
Thanh Nguyen <thanhdng@chromium.org> Cr-Commit-Position: refs/heads/master@{#748424}
Showing
This diff is collapsed.
Please register or sign in to comment