From 448227de72d6f29aa62186cbbe62e2d29e7154b0 Mon Sep 17 00:00:00 2001 From: fqj Date: Mon, 30 Nov 2015 19:06:08 -0800 Subject: Add the missing version number comment for AndroidPolicyWriter BUG=108941 Review URL: https://codereview.chromium.org/1461903003 Cr-Commit-Position: refs/heads/master@{#362323} --- .../grit/grit/format/policy_templates/writers/android_policy_writer.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/grit') 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) -- cgit v1.1