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

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

Issue 1825173003: [Policy Experimental] Add "recommended" policies for URL exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync. Created 4 years, 8 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 | « components/policy/core/common/schema_map.cc ('k') | components/prefs/pref_service.h » ('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 2760 matching lines...) Expand 10 before | Expand all | Expand 10 after
2771 'tags': [], 2771 'tags': [],
2772 'desc': '''Specifies the parameters used when doing image search with POST. It consists of comma-separated name/value pairs. If a value is a template parameter, like {imageThumbnail} in above example, it will be replaced with real image thumbnail data. 2772 'desc': '''Specifies the parameters used when doing image search with POST. It consists of comma-separated name/value pairs. If a value is a template parameter, like {imageThumbnail} in above example, it will be replaced with real image thumbnail data.
2773 2773
2774 This policy is optional. If not set, image search request will be sent using the GET method. 2774 This policy is optional. If not set, image search request will be sent using the GET method.
2775 2775
2776 This policy is only respected if the 'DefaultSearchProviderEnabled' po licy is enabled.''', 2776 This policy is only respected if the 'DefaultSearchProviderEnabled' po licy is enabled.''',
2777 }, 2777 },
2778 ], 2778 ],
2779 }, 2779 },
2780 { 2780 {
2781 # TODO(joaodasilva): Flag these policies with 'can_be_recommended'
2782 # after fixing https://crbug.com/106682
2783 'name': 'ContentSettings', 2781 'name': 'ContentSettings',
2784 'type': 'group', 2782 'type': 'group',
2785 'caption': '''Content Settings''', 2783 'caption': '''Content Settings''',
2786 'desc': '''Content Settings allow you to specify how contents of a specifi c type (for example Cookies, Images or JavaScript) is handled.''', 2784 'desc': '''Content Settings allow you to specify how contents of a specifi c type (for example Cookies, Images or JavaScript) is handled.''',
2787 'policies': [ 2785 'policies': [
2788 { 2786 {
2789 'name': 'DefaultCookiesSetting', 2787 'name': 'DefaultCookiesSetting',
2790 'type': 'int-enum', 2788 'type': 'int-enum',
2791 'schema': { 2789 'schema': {
2792 'type': 'integer', 2790 'type': 'integer',
(...skipping 16 matching lines...) Expand all
2809 'caption': '''Keep cookies for the duration of the session''', 2807 'caption': '''Keep cookies for the duration of the session''',
2810 }, 2808 },
2811 ], 2809 ],
2812 'supported_on': [ 2810 'supported_on': [
2813 'chrome.*:10-', 2811 'chrome.*:10-',
2814 'chrome_os:11-', 2812 'chrome_os:11-',
2815 'android:30-', 2813 'android:30-',
2816 'ios:34-47', 2814 'ios:34-47',
2817 ], 2815 ],
2818 'features': { 2816 'features': {
2817 'can_be_recommended': True,
2819 'dynamic_refresh': True, 2818 'dynamic_refresh': True,
2820 'per_profile': True, 2819 'per_profile': True,
2821 }, 2820 },
2822 'example_value': 1, 2821 'example_value': 1,
2823 'id': 48, 2822 'id': 48,
2824 'caption': '''Default cookies setting''', 2823 'caption': '''Default cookies setting''',
2825 'tags': [], 2824 'tags': [],
2826 'desc': '''Allows you to set whether websites are allowed to set local data. Setting local data can be either allowed for all websites or denied for a ll websites. 2825 'desc': '''Allows you to set whether websites are allowed to set local data. Setting local data can be either allowed for all websites or denied for a ll websites.
2827 2826
2828 If this policy is set to 'Keep cookies for the duration of the session ' then cookies will be cleared when the session closes. Note that if <ph name="P RODUCT_NAME">$1<ex>Google Chrome</ex></ph> is running in 'background mode', the session may not close when the last window is closed. Please see the 'Background ModeEnabled' policy for more information about configuring this behavior. 2827 If this policy is set to 'Keep cookies for the duration of the session ' then cookies will be cleared when the session closes. Note that if <ph name="P RODUCT_NAME">$1<ex>Google Chrome</ex></ph> is running in 'background mode', the session may not close when the last window is closed. Please see the 'Background ModeEnabled' policy for more information about configuring this behavior.
(...skipping 14 matching lines...) Expand all
2843 'caption': '''Allow all sites to show all images''', 2842 'caption': '''Allow all sites to show all images''',
2844 }, 2843 },
2845 { 2844 {
2846 'name': 'BlockImages', 2845 'name': 'BlockImages',
2847 'value': 2, 2846 'value': 2,
2848 'caption': '''Do not allow any site to show images''', 2847 'caption': '''Do not allow any site to show images''',
2849 }, 2848 },
2850 ], 2849 ],
2851 'supported_on': ['chrome.*:10-', 'chrome_os:11-', 'android:30-'], 2850 'supported_on': ['chrome.*:10-', 'chrome_os:11-', 'android:30-'],
2852 'features': { 2851 'features': {
2852 'can_be_recommended': True,
2853 'dynamic_refresh': True, 2853 'dynamic_refresh': True,
2854 'per_profile': True, 2854 'per_profile': True,
2855 }, 2855 },
2856 'example_value': 1, 2856 'example_value': 1,
2857 'id': 49, 2857 'id': 49,
2858 'caption': '''Default images setting''', 2858 'caption': '''Default images setting''',
2859 'tags': [], 2859 'tags': [],
2860 'desc': '''Allows you to set whether websites are allowed to display i mages. Displaying images can be either allowed for all websites or denied for al l websites. 2860 'desc': '''Allows you to set whether websites are allowed to display i mages. Displaying images can be either allowed for all websites or denied for al l websites.
2861 2861
2862 If this policy is left not set, 'AllowImages' will be used and the use r will be able to change it.''', 2862 If this policy is left not set, 'AllowImages' will be used and the use r will be able to change it.''',
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
2951 'caption': '''Do not allow any site to show popups''', 2951 'caption': '''Do not allow any site to show popups''',
2952 }, 2952 },
2953 ], 2953 ],
2954 'supported_on': [ 2954 'supported_on': [
2955 'chrome.*:10-', 2955 'chrome.*:10-',
2956 'chrome_os:11-', 2956 'chrome_os:11-',
2957 'ios:34-47', 2957 'ios:34-47',
2958 'android:33-', 2958 'android:33-',
2959 ], 2959 ],
2960 'features': { 2960 'features': {
2961 'can_be_recommended': True,
2961 'dynamic_refresh': True, 2962 'dynamic_refresh': True,
2962 'per_profile': True, 2963 'per_profile': True,
2963 }, 2964 },
2964 'example_value': 1, 2965 'example_value': 1,
2965 'id': 52, 2966 'id': 52,
2966 'caption': '''Default popups setting''', 2967 'caption': '''Default popups setting''',
2967 'tags': [], 2968 'tags': [],
2968 'desc': '''Allows you to set whether websites are allowed to show pop- ups. Showing popups can be either allowed for all websites or denied for all web sites. 2969 'desc': '''Allows you to set whether websites are allowed to show pop- ups. Showing popups can be either allowed for all websites or denied for all web sites.
2969 2970
2970 If this policy is left not set, 'BlockPopups' will be used and the use r will be able to change it.''', 2971 If this policy is left not set, 'BlockPopups' will be used and the use r will be able to change it.''',
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
3169 'type': 'array', 3170 'type': 'array',
3170 'items': { 'type': 'string' }, 3171 'items': { 'type': 'string' },
3171 }, 3172 },
3172 'supported_on': [ 3173 'supported_on': [
3173 'chrome.*:11-', 3174 'chrome.*:11-',
3174 'chrome_os:11-', 3175 'chrome_os:11-',
3175 'android:30-', 3176 'android:30-',
3176 'ios:34-47', 3177 'ios:34-47',
3177 ], 3178 ],
3178 'features': { 3179 'features': {
3180 'can_be_recommended': True,
3179 'dynamic_refresh': True, 3181 'dynamic_refresh': True,
3180 'per_profile': True, 3182 'per_profile': True,
3181 }, 3183 },
3182 'example_value': ['https://www.example.com', '[*.]example.edu'], 3184 'example_value': ['https://www.example.com', '[*.]example.edu'],
3183 'id': 77, 3185 'id': 77,
3184 'caption': '''Allow cookies on these sites''', 3186 'caption': '''Allow cookies on these sites''',
3185 'tags': [], 3187 'tags': [],
3186 'desc': '''Allows you to set a list of url patterns that specify sites which are allowed to set cookies. 3188 'desc': '''Allows you to set a list of url patterns that specify sites which are allowed to set cookies.
3187 3189
3188 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultCookiesSetting' policy if it is set, or the user's personal configuration otherwise.''', 3190 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultCookiesSetting' policy if it is set, or the user's personal configuration otherwise.''',
3189 }, 3191 },
3190 { 3192 {
3191 'name': 'CookiesBlockedForUrls', 3193 'name': 'CookiesBlockedForUrls',
3192 'type': 'list', 3194 'type': 'list',
3193 'schema': { 3195 'schema': {
3194 'type': 'array', 3196 'type': 'array',
3195 'items': { 'type': 'string' }, 3197 'items': { 'type': 'string' },
3196 }, 3198 },
3197 'supported_on': [ 3199 'supported_on': [
3198 'chrome.*:11-', 3200 'chrome.*:11-',
3199 'chrome_os:11-', 3201 'chrome_os:11-',
3200 'android:30-', 3202 'android:30-',
3201 'ios:34-47', 3203 'ios:34-47',
3202 ], 3204 ],
3203 'features': { 3205 'features': {
3206 'can_be_recommended': True,
3204 'dynamic_refresh': True, 3207 'dynamic_refresh': True,
3205 'per_profile': True, 3208 'per_profile': True,
3206 }, 3209 },
3207 'example_value': ['https://www.example.com', '[*.]example.edu'], 3210 'example_value': ['https://www.example.com', '[*.]example.edu'],
3208 'id': 67, 3211 'id': 67,
3209 'caption': '''Block cookies on these sites''', 3212 'caption': '''Block cookies on these sites''',
3210 'tags': [], 3213 'tags': [],
3211 'desc': '''Allows you to set a list of url patterns that specify sites which are not allowed to set cookies. 3214 'desc': '''Allows you to set a list of url patterns that specify sites which are not allowed to set cookies.
3212 3215
3213 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultCookiesSetting' policy if it is set, or the user's personal configuration otherwise.''', 3216 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultCookiesSetting' policy if it is set, or the user's personal configuration otherwise.''',
(...skipping 29 matching lines...) Expand all
3243 }, 3246 },
3244 { 3247 {
3245 'name': 'ImagesAllowedForUrls', 3248 'name': 'ImagesAllowedForUrls',
3246 'type': 'list', 3249 'type': 'list',
3247 'schema': { 3250 'schema': {
3248 'type': 'array', 3251 'type': 'array',
3249 'items': { 'type': 'string' }, 3252 'items': { 'type': 'string' },
3250 }, 3253 },
3251 'supported_on': ['chrome.*:11-', 'chrome_os:11-', 'android:30-'], 3254 'supported_on': ['chrome.*:11-', 'chrome_os:11-', 'android:30-'],
3252 'features': { 3255 'features': {
3256 'can_be_recommended': True,
3253 'dynamic_refresh': True, 3257 'dynamic_refresh': True,
3254 'per_profile': True, 3258 'per_profile': True,
3255 }, 3259 },
3256 'example_value': ['https://www.example.com', '[*.]example.edu'], 3260 'example_value': ['https://www.example.com', '[*.]example.edu'],
3257 'id': 69, 3261 'id': 69,
3258 'caption': '''Allow images on these sites''', 3262 'caption': '''Allow images on these sites''',
3259 'tags': [], 3263 'tags': [],
3260 'desc': '''Allows you to set a list of url patterns that specify sites which are allowed to display images. 3264 'desc': '''Allows you to set a list of url patterns that specify sites which are allowed to display images.
3261 3265
3262 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultImagesSetting' policy if it is set, or the user's personal configuration otherwise.''', 3266 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultImagesSetting' policy if it is set, or the user's personal configuration otherwise.''',
3263 }, 3267 },
3264 { 3268 {
3265 'name': 'ImagesBlockedForUrls', 3269 'name': 'ImagesBlockedForUrls',
3266 'type': 'list', 3270 'type': 'list',
3267 'schema': { 3271 'schema': {
3268 'type': 'array', 3272 'type': 'array',
3269 'items': { 'type': 'string' }, 3273 'items': { 'type': 'string' },
3270 }, 3274 },
3271 'supported_on': ['chrome.*:11-', 'chrome_os:11-', 'android:30-'], 3275 'supported_on': ['chrome.*:11-', 'chrome_os:11-', 'android:30-'],
3272 'features': { 3276 'features': {
3277 'can_be_recommended': True,
3273 'dynamic_refresh': True, 3278 'dynamic_refresh': True,
3274 'per_profile': True, 3279 'per_profile': True,
3275 }, 3280 },
3276 'example_value': ['https://www.example.com', '[*.]example.edu'], 3281 'example_value': ['https://www.example.com', '[*.]example.edu'],
3277 'id': 70, 3282 'id': 70,
3278 'caption': '''Block images on these sites''', 3283 'caption': '''Block images on these sites''',
3279 'tags': [], 3284 'tags': [],
3280 'desc': '''Allows you to set a list of url patterns that specify sites which are not allowed to display images. 3285 'desc': '''Allows you to set a list of url patterns that specify sites which are not allowed to display images.
3281 3286
3282 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultImagesSetting' policy if it is set, or the user's personal configuration otherwise.''', 3287 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultImagesSetting' policy if it is set, or the user's personal configuration otherwise.''',
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
3408 'type': 'array', 3413 'type': 'array',
3409 'items': { 'type': 'string' }, 3414 'items': { 'type': 'string' },
3410 }, 3415 },
3411 'supported_on': [ 3416 'supported_on': [
3412 'chrome.*:11-', 3417 'chrome.*:11-',
3413 'chrome_os:11-', 3418 'chrome_os:11-',
3414 'ios:34-47', 3419 'ios:34-47',
3415 'android:34-', 3420 'android:34-',
3416 ], 3421 ],
3417 'features': { 3422 'features': {
3423 'can_be_recommended': True,
3418 'dynamic_refresh': True, 3424 'dynamic_refresh': True,
3419 'per_profile': True, 3425 'per_profile': True,
3420 }, 3426 },
3421 'example_value': ['https://www.example.com', '[*.]example.edu'], 3427 'example_value': ['https://www.example.com', '[*.]example.edu'],
3422 'id': 75, 3428 'id': 75,
3423 'caption': '''Allow popups on these sites''', 3429 'caption': '''Allow popups on these sites''',
3424 'tags': [], 3430 'tags': [],
3425 'desc': '''Allows you to set a list of url patterns that specify sites which are allowed to open popups. 3431 'desc': '''Allows you to set a list of url patterns that specify sites which are allowed to open popups.
3426 3432
3427 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultPopupsSetting' policy if it is set, or the user's personal configuration otherwise.''', 3433 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultPopupsSetting' policy if it is set, or the user's personal configuration otherwise.''',
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
3472 'type': 'array', 3478 'type': 'array',
3473 'items': { 'type': 'string' }, 3479 'items': { 'type': 'string' },
3474 }, 3480 },
3475 'supported_on': [ 3481 'supported_on': [
3476 'chrome.*:11-', 3482 'chrome.*:11-',
3477 'chrome_os:11-', 3483 'chrome_os:11-',
3478 'ios:34-47', 3484 'ios:34-47',
3479 'android:34-', 3485 'android:34-',
3480 ], 3486 ],
3481 'features': { 3487 'features': {
3488 'can_be_recommended': True,
3482 'dynamic_refresh': True, 3489 'dynamic_refresh': True,
3483 'per_profile': True, 3490 'per_profile': True,
3484 }, 3491 },
3485 'example_value': ['https://www.example.com', '[*.]example.edu'], 3492 'example_value': ['https://www.example.com', '[*.]example.edu'],
3486 'id': 76, 3493 'id': 76,
3487 'caption': '''Block popups on these sites''', 3494 'caption': '''Block popups on these sites''',
3488 'tags': [], 3495 'tags': [],
3489 'desc': '''Allows you to set a list of url patterns that specify sites which are not allowed to open popups. 3496 'desc': '''Allows you to set a list of url patterns that specify sites which are not allowed to open popups.
3490 3497
3491 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultPopupsSetting' policy if it is set, or the user's personal configuration otherwise.''', 3498 If this policy is left not set the global default value will be used f or all sites either from the 'DefaultPopupsSetting' policy if it is set, or the user's personal configuration otherwise.''',
(...skipping 5004 matching lines...) Expand 10 before | Expand all | Expand 10 after
8496 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 8503 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
8497 'text': 'Default Settings (users can override)', 8504 'text': 'Default Settings (users can override)',
8498 }, 8505 },
8499 'doc_complex_policies_on_windows': { 8506 'doc_complex_policies_on_windows': {
8500 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', 8507 'desc': '''Text pointing the user to a help article for complex policies o n Windows''',
8501 '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>' '', 8508 '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>' '',
8502 }, 8509 },
8503 }, 8510 },
8504 'placeholders': [], 8511 'placeholders': [],
8505 } 8512 }
OLDNEW
« no previous file with comments | « components/policy/core/common/schema_map.cc ('k') | components/prefs/pref_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698