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

Unified Diff: tools/grit/grit/format/policy_templates/policy_template_generator.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/policy_template_generator.py
diff --git a/tools/grit/grit/format/policy_templates/policy_template_generator.py b/tools/grit/grit/format/policy_templates/policy_template_generator.py
index 3b2447e59c0b191d26b701a17aa4589c454d1018..3ccdedec66a380d5c28b774e93edf2fe219942d2 100644
--- a/tools/grit/grit/format/policy_templates/policy_template_generator.py
+++ b/tools/grit/grit/format/policy_templates/policy_template_generator.py
@@ -157,7 +157,7 @@ class PolicyTemplateGenerator:
policy['supported_on'])
if policy['type'] == 'group':
self._ProcessPolicyList(policy['policies'])
- elif policy['type'] == 'enum':
+ elif policy['type'] == 'string-enum' or policy['type'] == 'int-enum':
gfeher 2011/01/03 10:30:10 Nit: policy['type'] in ('string-enum', 'int-enum')
danno 2011/01/07 12:24:25 Done.
# Iterate through all the items of an enum-type policy, and add captions.
for item in policy['items']:
self._AddMessageToItem('ENUM_' + item['name'], item, 'caption')

Powered by Google App Engine
This is Rietveld 408576698