| Index: tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py
|
| diff --git a/tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py b/tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py
|
| index 965c90046d0d85b669b97d4cd9f0582372174aad..056776f0487f2158e08a7aba51abea96bac00dfc 100644
|
| --- a/tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py
|
| +++ b/tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py
|
| @@ -45,11 +45,11 @@ class PListStringsWriter(template_writer.TemplateWriter):
|
| string table.
|
| '''
|
| desc = policy['desc']
|
| - if (policy['type'] == 'enum'):
|
| + if policy['type'] in ('int-enum','string-enum'):
|
| # Append the captions of enum items to the description string.
|
| item_descs = []
|
| for item in policy['items']:
|
| - item_descs.append(item['value'] + ' - ' + item['caption'])
|
| + item_descs.append(str(item['value']) + ' - ' + item['caption'])
|
| desc = '\n'.join(item_descs) + '\n' + desc
|
|
|
| self._AddToStringTable(policy['name'], policy['label'], desc)
|
|
|