Index: grit/format/policy_templates/writers/doc_writer.py |
diff --git a/grit/format/policy_templates/writers/doc_writer.py b/grit/format/policy_templates/writers/doc_writer.py |
index ed6d06073be34c1f20a6ce0acc70fc337228dae7..e167d90b7613aab46fbb1f6fa5ee27e2636fb4f5 100644 |
--- a/grit/format/policy_templates/writers/doc_writer.py |
+++ b/grit/format/policy_templates/writers/doc_writer.py |
@@ -519,12 +519,19 @@ class DocWriter(xml_formatted_writer.XMLFormattedWriter): |
'mac_linux_pref_name', |
policy['name'], |
['.monospace']) |
- if self.IsPolicySupportedOnPlatform(policy, 'android'): |
+ if self.IsPolicySupportedOnPlatform(policy, 'android', 'chrome'): |
self._AddPolicyAttribute( |
dl, |
'android_restriction_name', |
policy['name'], |
['.monospace']) |
+ if self.IsPolicySupportedOnPlatform(policy, 'android', 'webview'): |
+ restriction_prefix = self.config['android_webview_restriction_prefix'] |
+ self._AddPolicyAttribute( |
+ dl, |
+ 'android_webview_restriction_name', |
+ restriction_prefix + policy['name'], |
+ ['.monospace']) |
dd = self._AddPolicyAttribute(dl, 'supported_on') |
self._AddSupportedOnList(dd, policy['supported_on']) |
dd = self._AddPolicyAttribute(dl, 'supported_features') |
@@ -685,6 +692,7 @@ class DocWriter(xml_formatted_writer.XMLFormattedWriter): |
'chrome': self.config['app_name'], |
'chrome_frame': self.config['frame_name'], |
'chrome_os': self.config['os_name'], |
+ 'webview': self.config['webview_name'], |
} |
# Human-readable names of supported features. Each supported feature has |
# a 'doc_feature_X' entry in |self.messages|. |