Currently, the icon sizes required for add to homescreen / app banners / add to desktop are specified as parameters to the InstallableManager. This doesn't make much sense:
- the icon sizes are constants per platform
- it means InstallableManager doesn't ever know what icon sizes its fetching, creating a knowledge dependency
- it requires a large amount of member variables with the icon sizes passed around the different classes.
The size calculations should be centralised in InstallableManager. Some amount of platform-specific bits will be required as the sizes on Android must be fetched over the JNI (specified in dips on the Java side).
Comment 1 by bugdroid1@chromium.org
, Sep 26 2017