-
Rahul Singh authored
In the initial CL for Shortcuts Menu (https://crrev.com/c/2146212), we used the WebAppIconManager::WriteData method to write both app icon and shortcut icon data to disk. App icons are for the web app as a whole. Shortcut icons on the other hand, are specified for a shortcut in the web app manifest's shortcuts member array. So, in the interest of code readability and debuggability we should write these to disk separately. With this in mind, I left a TODO in the initial CL to create separate methods for writing these 2 different kinds of icon data to disk. This CL addresses that TODO. It adds a separate WebAppIconManager::WriteShortcutIconsData method. It also reverts WebAppIconManager::WriteData to only write app icon specific data. Additionally, it updates existing unittests to work with the refactored code and adds new tests for reading and writing shortcut icon data. Finally, it renames occurrences of *ShortcutIcon*/*shortcut_icon* to *ShortcutsMenuIcon*/*shortcuts_menu_icon*. Bug: 1069308 Change-Id: I530b3af75277f1d6c5f2b0ed6a67ce469bba7fed Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2204972 Commit-Queue: Rahul Singh <rahsin@microsoft.com> Reviewed-by:
Alexey Baskakov <loyso@chromium.org> Cr-Commit-Position: refs/heads/master@{#772442}
853f91d6