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

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

Issue 5958014: Policy: Add ProxyMode and deprecate ProxyServerMode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: check final diff Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
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 4f699f22cf1d89bda369da4e775b79baa1a82f64..bb1a6349bacdc1a63dfb84d217390d7e76c6f0f0 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
@@ -48,11 +48,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)

Powered by Google App Engine
This is Rietveld 408576698