Add document policy presubmit checks
This CL adds presubmit check for: - document_policy_feature.mojom & document_policy_features.json5 sync - document_policy_feature.mojom & enums.xml sync Example presubmit warning messages generated by adding kNewFeature to document_policy_feature.mojom: DocumentPolicyFeature enum has been updated and the UMA mapping needs to be regenerated. Please run update_document_policy_enum.py in src/tools/metrics/histograms/ to update the mapping. third_party/blink/public/mojom/feature_policy/document_policy_feature.mojom third_party/blink/renderer/core/feature_policy/document_policy_features.json5 and third_party/blink/public/mojom/feature_policy/document_policy_feature.mojom are out of sync: ['NewFeature'] are missing in json5 config. third_party/blink/public/mojom/feature_policy/document_policy_feature.mojom \ third_party/blink/renderer/core/feature_policy/document_policy_features.json5 Change-Id: I21a73d75075ca9e0b7ddbaf30d934a8047dd6a6b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2248752Reviewed-by:Ian Clelland <iclelland@chromium.org> Commit-Queue: Charlie Hu <chenleihu@google.com> Cr-Commit-Position: refs/heads/master@{#781335}
Showing
Please register or sign in to comment