DescriptionAdded a ForceYouTubeRestrict policy and deprecated the old ForceYouTubeSafetyMode policy
ForceYouTubeRestrict allows 3 settings: off/moderate/strict.
ForceYouTubeSafetyMode only allowed off/on.
If ForceYouTubeRestrict is set, ForceYouTubeSafetyMode is ignored.
If ForceYouTubeRestrict is not set and ForceYouTubeSafetyMode is set, 'on' is mapped to 'moderate'.
If the deprecated ForceSafeSearch policy is set and neither ForceYouTubeSafetyMode nor
ForceYouTubeRestrict are set, 'on' is mapped to 'moderate' as well.
The restrict mode is sent to YouTube by adding a "YouTube-Restrict" HTML request header
with values "Moderate" resp. "Strict". The old "YouTube-Safety-Mode" is no longer sent,
even if ForceYouTubeRestrict is not set. YouTube already properly interprets
"YouTube-Restrict".
BUG=590478
Committed: https://crrev.com/c42c0dddcb3c630cb30096d16a4485bd1025eccc
Cr-Commit-Position: refs/heads/master@{#423571}
Patch Set 1 #
Total comments: 30
Patch Set 2 : Incorporated Thiemo's comments #Patch Set 3 : Inc'ed id of new policy to 342 #Patch Set 4 : Inc'ed id of new policy to 346 #
Total comments: 22
Patch Set 5 : Incorporated treib's comments #
Total comments: 1
Patch Set 6 : Removed a comma that broke the build on windows #Patch Set 7 : Changed naming scheme of YouTubeRestrictMode from OFF to kOff etc. to fix win compile error #Patch Set 8 : Upped id to 347 and chrome version to 55 #
Total comments: 30
Patch Set 9 : Incorporated comments #
Total comments: 10
Patch Set 10 : Rebase and inc'ed policy ID to 348 #
Total comments: 5
Patch Set 11 : Incorporated comments #Patch Set 12 : Comments #Messages
Total messages: 55 (33 generated)
|