cros: Add an icon to 'New window' menu item for Files app
There is no way to add an icon to a menu item provided by a platform app via chrome.contextMenus API. This CL detects that this particular item is being added (by checking the app id and the menu item label) and adds an appropriate icon to it. This method can be applied to other apps if necessary, which will require hard-coding app id, label and icon for each new case. Bug: 943319 Test: manual Change-Id: I9536e8dc7ab2d8623fca8b4d68cfb776e5053a26 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1632909 Commit-Queue: Vladislav Kaznacheev <kaznacheev@chromium.org> Reviewed-by:Yury Khmel <khmel@chromium.org> Reviewed-by:
Alex Newcomer <newcomer@chromium.org> Cr-Commit-Position: refs/heads/master@{#663957}
Showing
Please register or sign in to comment