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() |