Add RemoveIcon to IconCache to cache icons for the search result.
When clicks the launcher button, AppServiceAppResult is created for each app, and call LoadIcon, which could genearte mojom calls to load the icon. Remove SweepReleasedIcons when the view is closed to keep the icon cache in IconCache. When the app is removed or the icon is updated, call RemoveIcon to clear the map in IconCache. BUG=1104650 Change-Id: I6f5bfb44c9892187976f89ecb3993430fb565f2f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2318486 Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Reviewed-by:
Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#791922}
Showing
Please register or sign in to comment