Index: tools/grit/grit/format/policy_templates/writers/reg_writer.py |
diff --git a/tools/grit/grit/format/policy_templates/writers/reg_writer.py b/tools/grit/grit/format/policy_templates/writers/reg_writer.py |
index 4cf07cd40a9cf2fe4b83c9250809fa39a4adedf7..9d5888c73eeb6a35e79143626bcd387ed6a0dc39 100644 |
--- a/tools/grit/grit/format/policy_templates/writers/reg_writer.py |
+++ b/tools/grit/grit/format/policy_templates/writers/reg_writer.py |
@@ -1,4 +1,4 @@ |
-# Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+# Copyright (c) 2011 The Chromium Authors. All rights reserved. |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
@@ -56,7 +56,7 @@ class RegWriter(template_writer.TemplateWriter): |
example_value_str = 'dword:1' |
else: |
example_value_str = 'dword:0' |
- elif policy['type'] == 'int-enum': |
+ elif policy['type'] in ('int', 'int-enum'): |
example_value_str = 'dword:%d' % example_value |
gfeher
2011/01/10 20:56:33
While you are here, please change the base of the
Jakob Kummerow
2011/01/11 08:47:28
Done.
|
elif policy['type'] == 'string-enum': |
example_value_str = '"%s"' % example_value |