[Files Ranking] Add utility for getting file icons.
To display zero-state local files, we need to get the right icon for the filetype. This adds a helper function to do that, which closely mirrors the extension->icon mapping in file_manager/common/js/file_type.js. Bug: 959679 Change-Id: Ib0b9b77a62843e1e84a6f0494dc234e0660fe9d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1755564Reviewed-by:Jia Meng <jiameng@chromium.org> Reviewed-by:
Jenny Zhang <jennyz@chromium.org> Commit-Queue: Tony Yeoman <tby@chromium.org> Cr-Commit-Position: refs/heads/master@{#688396}
Showing
Please register or sign in to comment