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

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: small tweaks Created 10 years 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 965c90046d0d85b669b97d4cd9f0582372174aad..5bcaaaa4086273cdcb7489ed9a2b2773a6a24875 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,7 +45,13 @@ class PListStringsWriter(template_writer.TemplateWriter):
string table.
'''
desc = policy['desc']
- if (policy['type'] == 'enum'):
+ if (policy['type'] == 'int-enum'):
gfeher 2011/01/03 10:30:10 Please merge handling of 'int-enum' and 'string-en
danno 2011/01/07 12:24:25 Done.
+ # Append the captions of enum items to the description string.
+ item_descs = []
+ for item in policy['items']:
+ item_descs.append(str(item['value']) + ' - ' + item['caption'])
+ desc = '\n'.join(item_descs) + '\n' + desc
+ if (policy['type'] == 'string-enum'):
# Append the captions of enum items to the description string.
item_descs = []
for item in policy['items']:

Powered by Google App Engine
This is Rietveld 408576698