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

Unified Diff: tools/grit/grit/gather/policy_json.py

Issue 2278493004: Document ARC support for Chrome policies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typo. Created 4 years, 4 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
« no previous file with comments | « tools/grit/grit/format/policy_templates/writers/doc_writer_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0dcd831d4d5ffe8d69a01718c18d7913f1ca7f9d..9e95dc6086439bad8654f0c15fc87a574e31989a 100755
--- a/tools/grit/grit/gather/policy_json.py
+++ b/tools/grit/grit/gather/policy_json.py
@@ -18,7 +18,7 @@ from xml.parsers.expat import ExpatError
class PolicyJson(skeleton_gatherer.SkeletonGatherer):
'''Collects and translates the following strings from policy_templates.json:
- - captions,descriptions and labels of policies
+ - captions, descriptions, labels and Android app support details of policies
- captions of enumeration items
- misc strings from the 'messages' section
Translatable strings may have untranslateable placeholders with the same
@@ -145,6 +145,7 @@ class PolicyJson(skeleton_gatherer.SkeletonGatherer):
'desc': 'Description',
'caption': 'Caption',
'label': 'Label',
+ 'arc_support': 'Information about the effect on Android apps'
}
if item_type == 'policy':
return '%s of the policy named %s' % (key_map[key], item['name'])
@@ -170,7 +171,7 @@ class PolicyJson(skeleton_gatherer.SkeletonGatherer):
depth: The level of indentation.
'''
self._AddIndentedNontranslateableChunk(depth, "'%s': " % key)
- if key in ('desc', 'caption', 'label'):
+ if key in ('desc', 'caption', 'label', 'arc_support'):
self._AddNontranslateableChunk("'''")
self._ParseMessage(
item[key],
« no previous file with comments | « tools/grit/grit/format/policy_templates/writers/doc_writer_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698