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

Unified Diff: components/policy/resources/policy_templates.json

Issue 1865803002: [Policy Experimental] Add policies to allow Cookies and Pop-ups exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add another test to exercise main logic; renames from review. 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 side-by-side diff with in-line comments
Download patch
Index: components/policy/resources/policy_templates.json
diff --git a/components/policy/resources/policy_templates.json b/components/policy/resources/policy_templates.json
index 45006a30e2ede3db2772a3e13f57fabf2f7a6398..cf88a67555f5fccf08544492834e17a9b8966e43 100644
--- a/components/policy/resources/policy_templates.json
+++ b/components/policy/resources/policy_templates.json
@@ -137,7 +137,7 @@
# persistent IDs for all fields (but not for groups!) are needed. These are
# specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
# because doing so would break the deployed wire format!
-# For your editing convenience: highest ID currently used: 325
+# For your editing convenience: highest ID currently used: 328
#
# Placeholders:
# The following placeholder strings are automatically substituted:
@@ -3144,6 +3144,76 @@
If this policy is left not set, 'BlockKeygen' will be used and the user will be able to change it.''',
},
{
+ 'name': 'PrefExceptionsUsageCookies',
bartfab (slow) 2016/04/07 14:39:29 Here and for the other policy: This name is very c
huangs 2016/04/07 21:44:07 "Pref" (or some synonym; "user"?) is essential bec
bartfab (slow) 2016/04/08 10:17:30 You can use "Permit" or "Honor" -> "HonorCookiesSe
huangs 2016/04/08 13:39:12 I like "Permit"; will do that in the next update.
+ 'type': 'int-enum',
bartfab (slow) 2016/04/07 14:39:29 Here and for the other policy: Do we expect to eve
huangs 2016/04/07 21:44:07 This makes it easier to extend in future, e.g., al
+ 'schema': {
+ 'type': 'integer',
+ 'enum': [ 1, 2 ],
+ },
+ 'items': [
+ {
+ 'name': 'AllowCookiesPrefExceptions',
bartfab (slow) 2016/04/07 14:39:29 Here and for the other policy: Nit: Content polici
huangs 2016/04/07 21:44:07 Please see comment above?
+ 'value': 1,
+ 'caption': '''Allow users to specify cookies exceptions''',
+ },
+ {
+ 'name': 'BlockCookiesPrefExceptions',
+ 'value': 2,
+ 'caption': '''Do not allow users to specify cookies exceptions''',
Bernhard Bauer 2016/04/07 15:30:13 So, this would apply even if no policy sets the de
huangs 2016/04/07 21:44:07 In this case user defaults (DEFAULT_PROVIDER) will
Bernhard Bauer 2016/04/08 14:44:35 Yes... I think this isn't very useful, because if
huangs 2016/04/11 19:01:03 Sounds good, I'll remove the option. We still hav
+ },
+ ],
+ 'supported_on': [
+ 'chrome.*:51-',
+ 'chrome_os:51-',
+ ],
+ 'features': {
+ 'dynamic_refresh': True,
+ 'per_profile': True,
+ },
+ 'example_value': 1,
+ 'id': 327,
+ 'caption': '''Pref exceptions cookies setting''',
+ 'tags': [],
+ 'desc': '''Allows you to specify whether users can set exceptions to override default cookies policy.
+
+ If this policy is left not set, user's ability to set exceptions depends on the default cookies setting.''',
bartfab (slow) 2016/04/07 14:39:29 Here and for the other policy: What are you referr
huangs 2016/04/07 21:44:07 Depends on DefaultCookiesSetting. For exceptions,
bartfab (slow) 2016/04/08 10:17:30 But those policy exceptions come from a different
huangs 2016/04/08 13:39:12 Yes, this is a "meta"-setting that makes Policy se
bartfab (slow) 2016/04/11 10:27:31 My concern is that I do not understand "user's abi
huangs 2016/04/11 19:01:03 unset => Permit user exceptions by default. AllowC
+ },
+ {
+ 'name': 'PrefExceptionsUsagePopups',
+ 'type': 'int-enum',
+ 'schema': {
+ 'type': 'integer',
+ 'enum': [ 1, 2 ],
+ },
+ 'items': [
+ {
+ 'name': 'AllowPopupsPrefExceptions',
+ 'value': 1,
+ 'caption': '''Allow users to specify pop-ups exceptions''',
+ },
+ {
+ 'name': 'BlockPopupsPrefExceptions',
+ 'value': 2,
+ 'caption': '''Do not allow users to specify pop-ups exceptions''',
+ },
+ ],
+ 'supported_on': [
+ 'chrome.*:51-',
+ 'chrome_os:51-',
+ ],
+ 'features': {
+ 'dynamic_refresh': True,
+ 'per_profile': True,
+ },
+ 'example_value': 1,
+ 'id': 328,
+ 'caption': '''Pref exceptions pop-ups setting''',
+ 'tags': [],
+ 'desc': '''Allows you to specify whether users can set exceptions to override default pop-ups policy.
+
+ If this policy is left not set, user's ability to set exceptions depends on the default pop-ups setting.''',
+ },
+ {
'name': 'AutoSelectCertificateForUrls',
'type': 'list',
'schema': {

Powered by Google App Engine
This is Rietveld 408576698