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

Unified Diff: tools/grit/grit/gather/policy_json.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/gather/policy_json.py
diff --git a/tools/grit/grit/gather/policy_json.py b/tools/grit/grit/gather/policy_json.py
index cd7875fffcabe4447d887e078bc4c50774fcba33..c4545088b6ec06362e9a754289cf719f2d17d717 100644
--- a/tools/grit/grit/gather/policy_json.py
+++ b/tools/grit/grit/gather/policy_json.py
@@ -178,7 +178,7 @@ class PolicyJson(skeleton_gatherer.SkeletonGatherer):
else:
str_val = item[key]
if type(str_val) == types.StringType:
- str_val = "'%s'" % str_val
+ str_val = "'%s'" % self.Escape(str_val)
else:
str_val = str(str_val)
self._AddNontranslateableChunk(str_val + ',\n')
« no previous file with comments | « tools/grit/grit/format/policy_templates/writers/reg_writer_unittest.py ('k') | tools/grit/grit/gather/policy_json_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698