commit | 09c5916ed5ff4a1254fd2587ce3b151bd0b553f4 | [log] [tgz] |
---|---|---|
author | Henrique Nakashima <hnakashima@chromium.org> | Thu Oct 10 22:58:09 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Oct 10 22:58:09 2019 |
tree | d2b0c5f8cd15610acbd8735107d4399b566efc17 | |
parent | 90f5556e5feb18e8537b8b0eaf4b11b6e3557d34 [diff] |
Homogenize caching and checking of flags in FeatureUtilities. This a step to make FeatureUtilities easier to maintain. - Move most static variables in FeatureUtilities to a static Map. - Deduplicate code into isFlagEnabledWithDefaultFalse(), isFlagEnabledWithDefaultTrue(), and cacheFlag() - Keep the public API intact for now This is not a final solution, but it highlights the quirks in each usage so they can be clearly refactored out, and makes it easier to migrate to the solution we decide for. Bug: 1012975 Change-Id: Id155ec60dbcb1170ef39bc6e3f1b759ef7b63692 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1850820 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Matthew Jones <mdjones@chromium.org> Reviewed-by: Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#704864}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .