Index: tools/grit/grit/format/policy_templates/writers/json_writer.py |
diff --git a/tools/grit/grit/format/policy_templates/writers/json_writer.py b/tools/grit/grit/format/policy_templates/writers/json_writer.py |
index 8a6e35f9fc343924c73a89ae193074cc259f63b5..bc52ed14a56500461b53e62d29ca3a11f749f0a0 100644 |
--- a/tools/grit/grit/format/policy_templates/writers/json_writer.py |
+++ b/tools/grit/grit/format/policy_templates/writers/json_writer.py |
@@ -39,8 +39,10 @@ class JsonWriter(template_writer.TemplateWriter): |
example_value_str = 'true' |
else: |
example_value_str = 'false' |
- elif policy['type'] == 'enum': |
- example_value_str = example_value |
+ elif policy['type'] == 'string-enum': |
+ example_value_str = '"%s"' % example_value; |
+ elif policy['type'] == 'int-enum': |
+ example_value_str = str(example_value) |
else: |
raise Exception('unknown policy type %s:' % policy['type']) |