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

Unified Diff: components/policy/tools/generate_policy_source.py

Issue 1371073003: Display material design policies grouped by tags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaning and Refactoring. Created 5 years, 2 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
Index: components/policy/tools/generate_policy_source.py
diff --git a/components/policy/tools/generate_policy_source.py b/components/policy/tools/generate_policy_source.py
index b7505fc5f44bd67857bb141ad907f33ec021f80f..8b56cc64b520b9981ad6f24ab8a0ee48a9ec4356 100755
--- a/components/policy/tools/generate_policy_source.py
+++ b/components/policy/tools/generate_policy_source.py
@@ -850,7 +850,8 @@ def _WritePolicyRiskTagHeader(policies, os, f, riskTagGenerator):
'// policy_templates.json within the \'risk_tag_definitions\' tag.\n'
'enum RiskTag {\n' + \
riskTagGenerator.GenerateEnum () + ',\n'
- ' RISK_TAG_NONE\n'
+ ' RISK_TAG_COUNT, // This has to be second last ...\n'
+ ' RISK_TAG_NONE // ... so none-tags are not counted.\n'
'};\n'
'\n'
'// This constant describes how many risk tags were used by the\n'

Powered by Google App Engine
This is Rietveld 408576698