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

Side by Side Diff: components/policy/resources/policy_templates.json

Issue 2401743003: Recommit and fix of "Added a ForceYouTubeRestrict policy and deprecated the old ForceYouTubeSafetyM… (Closed)
Patch Set: Rebase Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 # policy_templates.json - Metafile for policy templates 2 # policy_templates.json - Metafile for policy templates
3 # 3 #
4 # The content of this file is evaluated as a Python expression. 4 # The content of this file is evaluated as a Python expression.
5 # 5 #
6 # This file is used as input to generate the following policy templates: 6 # This file is used as input to generate the following policy templates:
7 # ADM, ADMX+ADML, MCX/plist and html documentation. 7 # ADM, ADMX+ADML, MCX/plist and html documentation.
8 # 8 #
9 # Policy templates are user interface definitions or documents about the 9 # Policy templates are user interface definitions or documents about the
10 # policies that can be used to configure Chrome. Each policy is a name-value 10 # policies that can be used to configure Chrome. Each policy is a name-value
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 # templates and documentation. The policy definition list that Chrome sees 130 # templates and documentation. The policy definition list that Chrome sees
131 # will include policies marked with 'future'. If a WIP policy isn't meant to 131 # will include policies marked with 'future'. If a WIP policy isn't meant to
132 # be seen by the policy providers either, the 'supported_on' key should be set 132 # be seen by the policy providers either, the 'supported_on' key should be set
133 # to an empty list. 133 # to an empty list.
134 # 134 #
135 # IDs: 135 # IDs:
136 # Since a Protocol Buffer definition is generated from this file, unique and 136 # Since a Protocol Buffer definition is generated from this file, unique and
137 # persistent IDs for all fields (but not for groups!) are needed. These are 137 # persistent IDs for all fields (but not for groups!) are needed. These are
138 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, 138 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
139 # because doing so would break the deployed wire format! 139 # because doing so would break the deployed wire format!
140 # For your editing convenience: highest ID currently used: 347 140 # For your editing convenience: highest ID currently used: 348
141 # 141 #
142 # Placeholders: 142 # Placeholders:
143 # The following placeholder strings are automatically substituted: 143 # The following placeholder strings are automatically substituted:
144 # $1 -> Google Chrome / Chromium 144 # $1 -> Google Chrome / Chromium
145 # $2 -> Google Chrome OS / Chromium OS 145 # $2 -> Google Chrome OS / Chromium OS
146 # $3 -> Google Chrome Frame / Chromium Frame 146 # $3 -> Google Chrome Frame / Chromium Frame
147 # $6 is reserved for doc_writer 147 # $6 is reserved for doc_writer
148 # 148 #
149 # Device Policy: 149 # Device Policy:
150 # An additional flag 'device_only' (optional, defaults to False) indicates 150 # An additional flag 'device_only' (optional, defaults to False) indicates
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 'features': { 1085 'features': {
1086 'can_be_recommended': False, 1086 'can_be_recommended': False,
1087 'dynamic_refresh': True, 1087 'dynamic_refresh': True,
1088 'per_profile': True, 1088 'per_profile': True,
1089 }, 1089 },
1090 'deprecated': True, 1090 'deprecated': True,
1091 'example_value': False, 1091 'example_value': False,
1092 'id': 162, 1092 'id': 162,
1093 'caption': '''Force SafeSearch''', 1093 'caption': '''Force SafeSearch''',
1094 'tags': ['filtering'], 1094 'tags': ['filtering'],
1095 'desc': '''This policy is deprecated, please use ForceGoogleSafeSearch and ForceYouTubeSafetyMode instead. This policy will be ignored if either the Force GoogleSafeSearch or ForceYouTubeSafetyMode policies are set. 1095 'desc': '''This policy is deprecated, please use <ph name="FORCEGOOGLESAFE SEARCH_POLICY_NAME">ForceGoogleSafeSearch</ph> and <ph name="FORCEYOUTUBERESTRIC T_POLICY_NAME">ForceYouTubeRestrict</ph> instead. This policy is ignored if eith er the <ph name="FORCEGOOGLESAFESEARCH_POLICY_NAME">ForceGoogleSafeSearch</ph>, the <ph name="FORCEYOUTUBERESTRICT_POLICY_NAME">ForceYouTubeRestrict</ph> or the (deprecated) <ph name="FORCEYOUTUBESAFETYMODE_POLICY_NAME">ForceYouTubeSafetyMo de</ph> policies are set.
1096 1096
1097 Forces queries in Google Web Search to be done with SafeSearch set to acti ve and prevents users from changing this setting. This setting also forces Safet y Mode on YouTube. 1097 Forces queries in Google Web Search to be done with SafeSearch set to acti ve and prevents users from changing this setting. This setting also forces Moder ate Restricted Mode on YouTube.
1098 1098
1099 If you enable this setting, SafeSearch in Google Search and YouTube is alw ays active. 1099 If you enable this setting, SafeSearch in Google Search and Moderate Restr icted Mode YouTube is always active.
1100 1100
1101 If you disable this setting or do not set a value, SafeSearch in Google Se arch and YouTube is not enforced.''', 1101 If you disable this setting or do not set a value, SafeSearch in Google Se arch and Restricted Mode in YouTube is not enforced.''',
1102 }, 1102 },
1103 { 1103 {
1104 'name': 'ForceGoogleSafeSearch', 1104 'name': 'ForceGoogleSafeSearch',
1105 'type': 'main', 1105 'type': 'main',
1106 'schema': { 'type': 'boolean' }, 1106 'schema': { 'type': 'boolean' },
1107 'supported_on': ['chrome.*:41-', 'chrome_os:41-', 'android:41-'], 1107 'supported_on': ['chrome.*:41-', 'chrome_os:41-', 'android:41-'],
1108 'features': { 1108 'features': {
1109 'can_be_recommended': False, 1109 'can_be_recommended': False,
1110 'dynamic_refresh': True, 1110 'dynamic_refresh': True,
1111 'per_profile': True, 1111 'per_profile': True,
(...skipping 11 matching lines...) Expand all
1123 { 1123 {
1124 'name': 'ForceYouTubeSafetyMode', 1124 'name': 'ForceYouTubeSafetyMode',
1125 'type': 'main', 1125 'type': 'main',
1126 'schema': { 'type': 'boolean' }, 1126 'schema': { 'type': 'boolean' },
1127 'supported_on': ['chrome.*:41-', 'chrome_os:41-', 'android:41-'], 1127 'supported_on': ['chrome.*:41-', 'chrome_os:41-', 'android:41-'],
1128 'features': { 1128 'features': {
1129 'can_be_recommended': False, 1129 'can_be_recommended': False,
1130 'dynamic_refresh': True, 1130 'dynamic_refresh': True,
1131 'per_profile': True, 1131 'per_profile': True,
1132 }, 1132 },
1133 'deprecated': True,
1133 'example_value': False, 1134 'example_value': False,
1134 'id': 283, 1135 'id': 283,
1135 'caption': '''Force YouTube Safety Mode''', 1136 'caption': '''Force YouTube Safety Mode''',
1136 'tags': ['filtering'], 1137 'tags': ['filtering'],
1137 'desc': '''Forces YouTube Safety Mode to active and prevents users from ch anging this setting. 1138 'desc': '''This policy is deprecated. Consider using <ph name="FORCEYOUTUB ERESTRICT_POLICY_NAME">ForceYouTubeRestrict</ph>, which overrides this policy an d allows more fine-grained tuning.
1138 1139
1139 If you enable this setting, Safety Mode on YouTube is always active. 1140 Forces YouTube Moderate Restricted Mode and prevents users from changing t his setting.
1140 1141
1141 If you disable this setting or do not set a value, Safety Mode on YouTube is not enforced.''', 1142 If this setting is enabled, Restricted Mode on YouTube is always enforced to be at least Moderate.
1142 'arc_support': 'This policy has no effect on the Android YouTube app. If y ou want to enforce Safety Mode on YouTube, you should disallow installation of t he Android YouTube app.', 1143
1144 If this setting is disabled or no value is set, Restricted Mode on YouTube is not enforced by <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph>. Exter nal policies such as YouTube policies might still enforce Restricted Mode, thoug h.''',
1145 'arc_support': 'This policy has no effect on the Android YouTube app. If S afety Mode on YouTube should be enforced, installation of the Android YouTube ap p should be disallowed.',
1146 },
1147 {
1148 'name': 'ForceYouTubeRestrict',
1149 'type': 'int-enum',
1150 'schema': {
1151 'type': 'integer',
1152 'enum': [ 0, 1, 2 ],
1153 },
1154 'items': [
1155 {
1156 'name': 'Off',
1157 'value': 0,
1158 'caption': '''Do not enforce Restricted Mode on YouTube''',
1159 },
1160 {
1161 'name': 'Moderate',
1162 'value': 1,
1163 'caption': '''Enforce at least Moderate Restricted Mode on YouTube''',
1164 },
1165 {
1166 'name': 'Strict',
1167 'value': 2,
1168 'caption': '''Enforce Strict Restricted Mode for YouTube''',
1169 },
1170 ],
1171 'supported_on': ['chrome.*:55-', 'chrome_os:55-', 'android:55-'],
1172 'features': {
1173 'can_be_recommended': False,
1174 'dynamic_refresh': True,
1175 'per_profile': True,
1176 },
1177 'example_value': 0,
1178 'id': 348,
1179 'caption': '''Force minimum YouTube Restricted Mode''',
1180 'tags': ['filtering'],
1181 'desc': '''Enforces a minimum Restricted Mode on YouTube and prevents user s from
1182 picking a less restricted mode.
1183
1184 If this setting is set to Strict, Strict Restricted Mode on YouTube is alw ays active.
1185
1186 If this setting is set to Moderate, the user may only pick Moderate Restri cted Mode
1187 and Strict Restricted Mode on YouTube, but cannot disable Restricted Mode.
1188
1189 If this setting is set to Off or no value is set, Restricted Mode on YouTu be is not enforced by <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph>. Ext ernal policies such as YouTube policies might still enforce Restricted Mode, tho ugh.''',
1190 'arc_support': 'This policy has no effect on the Android YouTube app. If S afety Mode on YouTube should be enforced, installation of the Android YouTube ap p should be disallowed.',
1143 }, 1191 },
1144 { 1192 {
1145 'name': 'SafeBrowsingEnabled', 1193 'name': 'SafeBrowsingEnabled',
1146 'type': 'main', 1194 'type': 'main',
1147 'schema': { 'type': 'boolean' }, 1195 'schema': { 'type': 'boolean' },
1148 'supported_on': ['chrome.*:8-', 'chrome_os:11-', 'android:30-'], 1196 'supported_on': ['chrome.*:8-', 'chrome_os:11-', 'android:30-'],
1149 'features': { 1197 'features': {
1150 'can_be_recommended': True, 1198 'can_be_recommended': True,
1151 'dynamic_refresh': True, 1199 'dynamic_refresh': True,
1152 'per_profile': True, 1200 'per_profile': True,
(...skipping 7974 matching lines...) Expand 10 before | Expand all | Expand 10 after
9127 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 9175 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
9128 'text': 'Default Settings (users can override)', 9176 'text': 'Default Settings (users can override)',
9129 }, 9177 },
9130 'doc_complex_policies_on_windows': { 9178 'doc_complex_policies_on_windows': {
9131 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', 9179 'desc': '''Text pointing the user to a help article for complex policies o n Windows''',
9132 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">https://www.chromium.org/administrators/complex-policies-on-windows<e x>https://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>' '', 9180 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">https://www.chromium.org/administrators/complex-policies-on-windows<e x>https://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>' '',
9133 }, 9181 },
9134 }, 9182 },
9135 'placeholders': [], 9183 'placeholders': [],
9136 } 9184 }
OLDNEW
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698