[Themes] Uninstall themes only if there are no reinstallers.
Previously unused themes were uninstalled when no infobars were present. But now when themes can be reverted ChromeColorsService, counting infobars is not sufficient for preventing uninstall of necessary themes. This CL adds ThemeReinstaller class that will update the of number of existing reinstallers and will call RemoveUnusedThemes when there are no reinstallers left. This CL also removes ignore_infobars param from RemoveUnusedThemes as it is not relevant anymore. Bug: 985001, 991715 Change-Id: Ia3905ee2d8c5fb238c8d6a380d17ed9d3018e2a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1757067Reviewed-by:Avi Drissman <avi@chromium.org> Reviewed-by:
Peter Kotwicz <pkotwicz@chromium.org> Commit-Queue: Gayane Petrosyan <gayane@chromium.org> Cr-Commit-Position: refs/heads/master@{#688367}
Showing
Please register or sign in to comment