Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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) |
| OLD | NEW |