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

Unified Diff: grit/format/policy_templates/writers/reg_writer.py

Issue 347293003: Added support for string-enum-list. (Closed) Base URL: http://grit-i18n.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 6 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: grit/format/policy_templates/writers/reg_writer.py
===================================================================
--- grit/format/policy_templates/writers/reg_writer.py (revision 169)
+++ grit/format/policy_templates/writers/reg_writer.py (working copy)
@@ -47,7 +47,7 @@
list.sort() methods to sort policies.
See TemplateWriter.SortPoliciesGroupsFirst for usage.
'''
- is_list = policy['type'] == 'list'
+ is_list = policy['type'] in ('list', 'string-enum-list')
# Lists come after regular policies.
return (is_list, policy['name'])
@@ -57,7 +57,7 @@
if policy['type'] == 'external':
# This type can only be set through cloud policy.
return
- elif policy['type'] == 'list':
+ elif policy['type'] in ('list', 'string-enum-list'):
self._StartBlock(key, policy['name'], list)
i = 1
for item in example_value:

Powered by Google App Engine
This is Rietveld 408576698