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

Unified Diff: tools/grit/grit/format/policy_templates/writers/json_writer.py

Issue 5958014: Policy: Add ProxyMode and deprecate ProxyServerMode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: check final diff Created 9 years, 11 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: 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'])

Powered by Google App Engine
This is Rietveld 408576698