Chromium Code Reviews
DescriptionRefactor ManifestIconSelector and update it for Manifest.icon.purpose
This CL refactors ManifestIconSelector:
1. Removes the extra copy of icons introduced in FilterIconsByType;
2. Combines the iteration for finding the ideal icon and the iteration
for finding the icon closest to ideal icon into one iteration;
3. Changes out-dated name "preferred icon" to current "ideal icon";
4. Removes non-static class members and functions.
This CL also updates ManifestIconSelector to allow users to pass
desired icon purpose as a parameter to FindBestMatchingIcon.
BUG=649771
Review-Url: https://codereview.chromium.org/2662103002
Cr-Commit-Position: refs/heads/master@{#447595}
Committed: https://chromium.googlesource.com/chromium/src/+/19e2302e5d56e1aaa20a1ac7ee3a863a013ed60c
Patch Set 1 : InstallableManager not updated #
Total comments: 4
Patch Set 2 : Addressing comments #
Total comments: 14
Patch Set 3 : Addressing comments #
Messages
Total messages: 26 (16 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||