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

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

Issue 1461903003: Add the missing version number comment for AndroidPolicyWriter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/format/policy_templates/writers/android_policy_writer.py
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 5d8cbef38f991b2964d15d36ce6f6e3b45133072..3f8518382a55582b185c3a845a8d273a1328e9c5 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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698