Why?
In most cases, the feature name and string already match, so there's no need to type it twice. While there are legitimate reasons for them to differ, typos or mismatches can also cause confusion. The new two-argument macro simplifies feature definition and helps avoid unintended discrepancies. The existing three-argument macro will continue to be supported for cases where the name and string need to be different.Thank you for all your suggestions and patience!
The migration has been completed, with the new format:
BASE_DECLARE_FEATURE(kMyFeature);
BASE_FEATURE(kMyFeature, base::FEATURE_ENABLED_BY_DEFAULT);
which is equivalent to
BASE_DECLARE_FEATURE(kMyFeature);
BASE_FEATURE(kMyFeature, "MyFeature", base::FEATURE_ENABLED_BY_DEFAULT);