Generate GetDefaultFeatureList from feature_policy_features.json5
Previously, adding a new feature to feature policy needs to modify 3 files: - feature_policy_feature.mojom - feature_policy_features.json5 - feature_policy.cc This CL generates |FeaturePolicy::GetDefaultFeatureList| from json5 config, which eliminates the need to modify feature_policy.cc when adding a new feature. Change-Id: I368215bc66fa8b568e20203f7e9810ddd13f683f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2212794Reviewed-by:Ian Clelland <iclelland@chromium.org> Reviewed-by:
Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Charlie Hu <chenleihu@google.com> Cr-Commit-Position: refs/heads/master@{#789494}
Showing
This diff is collapsed.
Please register or sign in to comment