We are having too many methods in the class and once a new feature is added, there will be two more methods.
quoting comment from twellington@ (https://chromium-review.googlesource.com/c/chromium/src/+/1134587):
"""
Instead of adding new methods here, can we add generic #readBoolean and #writeBoolean similar to what we did for #readInt and #writeInt & contextual search (see public static's at the top of this file)?
We've seen an explosion in methods here and it would be nice if we didn't need to add two new methods for each new preference.
"""
However I'm concerned about how to deal with the default values. Seems the previous approach only works for preference values with a default value of 0.
There might be 2 ways:
1. Keep default value predefined and if the pref is not set but asked, return the default value.
2. Create two methods: readBooleanWithDefaultFalse() and readBooleanWithDefaultTrue().
Comment 1 by twelling...@chromium.org
, Jul 16