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

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

Issue 4164006: Generate example JSON policy configuration files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 10 years, 1 month 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/template_writer.py
diff --git a/tools/grit/grit/format/policy_templates/writers/template_writer.py b/tools/grit/grit/format/policy_templates/writers/template_writer.py
index 4af1e45851412f99662ec274d8d4316fc240a7e0..aa4f2335410ec1cf65f3a48d9d1462ba66e9fe08 100644
--- a/tools/grit/grit/format/policy_templates/writers/template_writer.py
+++ b/tools/grit/grit/format/policy_templates/writers/template_writer.py
@@ -90,7 +90,7 @@ class TemplateWriter(object):
# Nesting of groups is currently not supported.
self.WritePolicy(child_policy)
self.EndPolicyGroup()
- else:
+ elif self.IsPolicySupported(policy):
self.WritePolicy(policy)
self.EndTemplate()
return self.GetTemplateText()
« no previous file with comments | « tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py ('k') | tools/grit/grit/node/misc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698