summaryrefslogtreecommitdiffstats
path: root/tools/grit
diff options
context:
space:
mode:
authorfqj <fqj@chromium.org>2015-11-30 19:06:08 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-01 03:06:44 +0000
commit448227de72d6f29aa62186cbbe62e2d29e7154b0 (patch)
tree46e539e6b14c6308f9e015ea3b6341f6ce166ca1 /tools/grit
parentf9fedaede7b23c9e5ec35ee94f5443b235b0d2ca (diff)
downloadchromium_src-448227de72d6f29aa62186cbbe62e2d29e7154b0.zip
chromium_src-448227de72d6f29aa62186cbbe62e2d29e7154b0.tar.gz
chromium_src-448227de72d6f29aa62186cbbe62e2d29e7154b0.tar.bz2
Add the missing version number comment for AndroidPolicyWriter
BUG=108941 Review URL: https://codereview.chromium.org/1461903003 Cr-Commit-Position: refs/heads/master@{#362323}
Diffstat (limited to 'tools/grit')
-rwxr-xr-xtools/grit/grit/format/policy_templates/writers/android_policy_writer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/grit/grit/format/policy_templates/writers/android_policy_writer.py b/tools/grit/grit/format/policy_templates/writers/android_policy_writer.py
index 5d8cbef..3f85183 100755
--- a/tools/grit/grit/format/policy_templates/writers/android_policy_writer.py
+++ b/tools/grit/grit/format/policy_templates/writers/android_policy_writer.py
@@ -88,6 +88,9 @@ class AndroidPolicyWriter(xml_formatted_writer.XMLFormattedWriter):
def BeginTemplate(self):
comment_text = 'DO NOT MODIFY THIS FILE DIRECTLY!\n' \
'IT IS GENERATED FROM policy_templates.json.'
+ if self._GetChromiumVersionString():
+ comment_text += '\n' + self.config['build'] + ' version: '\
+ + self._GetChromiumVersionString()
comment_node = self._doc.createComment(comment_text)
self._doc.insertBefore(comment_node, self._resources)