Commit 6a014fd7 authored by Andy Lu's avatar Andy Lu Committed by Commit Bot

Add in policy to control the PrintingEnabled pref

Bug:1066482

Change-Id: Icd89446475fd461fe3eb61a1079929b1dbe191b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2337956
Commit-Queue: Andy Lu <andyhylu@google.com>
Reviewed-by: default avatarOwen Min <zmin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#795237}
parent 5596a270
...@@ -2172,6 +2172,7 @@ ...@@ -2172,6 +2172,7 @@
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' }, 'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:11-', 'android:39-'], 'supported_on': ['chrome.*:8-', 'chrome_os:11-', 'android:39-'],
'future_on': [ 'ios' ],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
'per_profile': True, 'per_profile': True,
...@@ -65,6 +65,9 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = { ...@@ -65,6 +65,9 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = {
{ policy::key::kPopupsBlockedForUrls, { policy::key::kPopupsBlockedForUrls,
prefs::kManagedPopupsBlockedForUrls, prefs::kManagedPopupsBlockedForUrls,
base::Value::Type::LIST }, base::Value::Type::LIST },
{ policy::key::kPrintingEnabled,
prefs::kPrintingEnabled,
base::Value::Type::BOOLEAN },
{ policy::key::kSafeBrowsingEnabled, { policy::key::kSafeBrowsingEnabled,
prefs::kSafeBrowsingEnabled, prefs::kSafeBrowsingEnabled,
base::Value::Type::BOOLEAN }, base::Value::Type::BOOLEAN },
......
...@@ -339,6 +339,28 @@ ...@@ -339,6 +339,28 @@
] ]
}, },
"PrintingEnabled":{
"os":["ios"],
"policy_pref_mapping_test":[
{
"policies":{"PrintingEnabled": true},
"prefs":{
"printing.enabled":{
"value": true
}
}
},
{
"policies":{"PrintingEnabled": false},
"prefs":{
"printing.enabled":{
"value": false
}
}
}
]
},
"SafeBrowsingEnabled": { "SafeBrowsingEnabled": {
"os": [ "ios" ], "os": [ "ios" ],
"can_be_recommended": true, "can_be_recommended": true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment