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

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

Issue 6360002: Remove 'annotations' dictionary in policy_definitions.json. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better comments 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 a754305bab79c1a4f2e35086cd5ef34f393fdb5e..de7ec2700505f2a36dd093e540fded4a245fe310 100644
--- a/tools/grit/grit/format/policy_templates/writers/json_writer.py
+++ b/tools/grit/grit/format/policy_templates/writers/json_writer.py
@@ -26,7 +26,7 @@ class JsonWriter(template_writer.TemplateWriter):
return self.FlattenGroupsAndSortPolicies(policy_list)
def WritePolicy(self, policy):
- example_value = policy['annotations']['example_value']
+ example_value = policy['example_value']
if policy['type'] == 'string':
example_value_str = '"' + example_value + '"'
elif policy['type'] == 'int':

Powered by Google App Engine
This is Rietveld 408576698