| Index: grit/format/policy_templates/writers/template_writer.py
|
| ===================================================================
|
| --- grit/format/policy_templates/writers/template_writer.py (revision 175)
|
| +++ grit/format/policy_templates/writers/template_writer.py (working copy)
|
| @@ -87,6 +87,10 @@
|
| '''Checks if the given policy can be recommended.'''
|
| return policy.get('features', {}).get('can_be_recommended', False)
|
|
|
| + def CanBeMandatory(self, policy):
|
| + '''Checks if the given policy can be mandatory.'''
|
| + return policy.get('features', {}).get('can_be_mandatory', True)
|
| +
|
| def IsPolicySupportedOnPlatform(self, policy, platform):
|
| '''Checks if |policy| is supported on |platform|.
|
|
|
|
|