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

Side by Side Diff: grit/format/policy_templates/writers/reg_writer.py

Issue 631223003: Include chromium version number in policy templates (Closed) Base URL: http://grit-i18n.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 6
7 import json 7 import json
8 8
9 from grit.format.policy_templates.writers import template_writer 9 from grit.format.policy_templates.writers import template_writer
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 def EndTemplate(self): 99 def EndTemplate(self):
100 pass 100 pass
101 101
102 def Init(self): 102 def Init(self):
103 self._mandatory = [] 103 self._mandatory = []
104 self._recommended = [] 104 self._recommended = []
105 self._last_key = {} 105 self._last_key = {}
106 106
107 def GetTemplateText(self): 107 def GetTemplateText(self):
108 prefix = ['Windows Registry Editor Version 5.00'] 108 prefix = ['Windows Registry Editor Version 5.00']
109 if self._GetChromiumVersionString() is not None:
110 prefix.append('''; ''' + self.config['build'] + ''' version: ''' + self._G etChromiumVersionString())
pastarmovj 2014/10/07 14:54:36 same.
cschuet1 2014/10/07 15:42:47 Done.
109 all = prefix + self._mandatory + self._recommended 111 all = prefix + self._mandatory + self._recommended
110 return self.NEWLINE.join(all) 112 return self.NEWLINE.join(all)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698