Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(518)

Unified Diff: components/policy/resources/PRESUBMIT.py

Issue 2667373003: Change Enterprise.Policies histogram bucket descriptions to policy names (Closed)
Patch Set: Rebase. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/policy/resources/policy_templates.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/resources/PRESUBMIT.py
diff --git a/components/policy/resources/PRESUBMIT.py b/components/policy/resources/PRESUBMIT.py
index b59e8d3504f25bd5b355e988053a69bee0ebc045..b3264a1c680101f1a8844d25c1edb7789bb1523e 100644
--- a/components/policy/resources/PRESUBMIT.py
+++ b/components/policy/resources/PRESUBMIT.py
@@ -90,7 +90,9 @@ def _CheckPolicyHistograms(input_api, output_api, policies):
error_missing = ('Policy \'%s\' was added to policy_templates.json but not '
'to src/tools/metrics/histograms/histograms.xml. '
- 'Please update both files.')
+ 'Please update both files. To regenerate the policy part '
+ 'of histograms.xml, run:\n'
+ 'python tools/metrics/histograms/update_policies.py')
results = []
for policy in policies:
if policy['id'] not in policy_ids:
« no previous file with comments | « no previous file | components/policy/resources/policy_templates.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698