| 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 776e4f5a739e09e0d767ec32697c43a6a7f029fc..a1425c68fa88d1e2c42ad8aed92b70f5775de495 100644
|
| --- a/tools/grit/grit/format/policy_templates/writers/json_writer.py
|
| +++ b/tools/grit/grit/format/policy_templates/writers/json_writer.py
|
| @@ -36,8 +36,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'])
|
|
|
|
|