Index: tools/grit/grit/format/policy_templates/policy_template_generator.py |
diff --git a/tools/grit/grit/format/policy_templates/policy_template_generator.py b/tools/grit/grit/format/policy_templates/policy_template_generator.py |
index 3b2447e59c0b191d26b701a17aa4589c454d1018..1dd3ef8bb945b3168ec4d4d0ea0c53034428a00f 100644 |
--- a/tools/grit/grit/format/policy_templates/policy_template_generator.py |
+++ b/tools/grit/grit/format/policy_templates/policy_template_generator.py |
@@ -157,7 +157,7 @@ class PolicyTemplateGenerator: |
policy['supported_on']) |
if policy['type'] == 'group': |
self._ProcessPolicyList(policy['policies']) |
- elif policy['type'] == 'enum': |
+ elif policy['type'] in ('string-enum', 'int-enum'): |
# Iterate through all the items of an enum-type policy, and add captions. |
for item in policy['items']: |
self._AddMessageToItem('ENUM_' + item['name'], item, 'caption') |