| 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 a1425c68fa88d1e2c42ad8aed92b70f5775de495..ca36bd21310389522ca3a3836ed71add68919f8e 100644
|
| --- a/tools/grit/grit/format/policy_templates/writers/json_writer.py
|
| +++ b/tools/grit/grit/format/policy_templates/writers/json_writer.py
|
| @@ -1,4 +1,4 @@
|
| -# Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +# Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| @@ -26,6 +26,8 @@ class JsonWriter(template_writer.TemplateWriter):
|
| example_value = policy['annotations']['example_value']
|
| if policy['type'] == 'string':
|
| example_value_str = '"' + example_value + '"'
|
| + elif policy['type'] == 'int':
|
| + example_value_str = str(example_value)
|
| elif policy['type'] == 'list':
|
| if example_value == []:
|
| example_value_str = '[]'
|
|
|