Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use helper macros to define base::Features in //components/variations
This allows: - features to be defined with a consistent set of qualifiers, and for that set of qualifiers to be updated over time as appropriate. - better PRESUBMIT checks to ensure that base::Features are not defined in headers. - simplifies things for scripts trying to extract feature definitions out of C++ code. The primary CL was generated using a script that automatically rewrites base::Feature declarations and definitions to the macro form. Changes to any files with known incompatibilities with the macros (base::Features without static storage duration and base::Features declared as static class members) were then fully reverted; those changes will be manually handled in followups. This is an automated cleanup pass with manual fixups to add additional static specifiers where needed. Bug: 1364289 Change-Id: Ib5c625ec8150f115cc819819ecb478a20b12d7af Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3931194 Reviewed-by: Lei Zhang <thestig@chromium.org> Auto-Submit: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Owners-Override: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/main@{#1053881}
- Loading branch information