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

Issue 2239753002: Added a ForceYouTubeRestrict policy and deprecated the old ForceYouTubeSafetyMode policy (Closed)

Created:
4 years, 4 months ago by ljusten (tachyonic)
Modified:
4 years, 2 months ago
CC:
asvitkine+watch_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, pam+watch_chromium.org, tnagel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -162 lines) Patch
M chrome/browser/net/chrome_network_delegate.h View 1 6 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +23 lines, -17 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +20 lines, -19 lines 0 comments Download
M chrome/browser/net/safe_search_util.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +22 lines, -6 lines 0 comments Download
M chrome/browser/net/safe_search_util.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +28 lines, -14 lines 0 comments Download
M chrome/browser/net/safe_search_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +13 lines, -10 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 4 5 6 7 8 9 5 chunks +53 lines, -8 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +77 lines, -26 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_pref_store.cc View 1 2 3 4 5 6 7 8 4 chunks +30 lines, -16 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_pref_store_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_service_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -4 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 6 7 8 9 3 chunks +57 lines, -9 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 55 (33 generated)
ljusten (tachyonic)
Hey Thiemo, Alright, the YouTube change is up. Sorry I have to push all CLs ...
4 years, 4 months ago (2016-08-11 16:09:12 UTC) #4
Thiemo Nagel
Some initial comments. https://codereview.chromium.org/2239753002/diff/1/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/2239753002/diff/1/chrome/browser/net/chrome_network_delegate.cc#newcode151 chrome/browser/net/chrome_network_delegate.cc:151: force_youtube_restrict_(NULL), Could you maybe replace NULL ...
4 years, 4 months ago (2016-08-12 12:12:21 UTC) #7
ljusten (tachyonic)
I've incorporated the comments. There are two remaining things for discussion: - Where to put ...
4 years, 4 months ago (2016-08-16 09:24:54 UTC) #8
ljusten (tachyonic)
mkwst@chromium.org: Please review changes in tools/metrics/histograms/histograms.xml mef@chromium.org: Please review changes in chrome/browser/net erg@chromium.org: Please review ...
4 years, 3 months ago (2016-09-05 09:04:17 UTC) #10
Mike West
I'm only in the //tools/metrics/histograms/ file for Blink-side UseCounter changes. This change looks pretty trivial, ...
4 years, 3 months ago (2016-09-05 09:09:13 UTC) #11
ljusten (tachyonic)
holte@chromium.org, please review changes in histograms.xml.
4 years, 3 months ago (2016-09-05 09:27:54 UTC) #15
Marc Treib
Mostly LG, with a bunch of small comments below. https://codereview.chromium.org/2239753002/diff/60001/chrome/browser/net/safe_search_util.cc File chrome/browser/net/safe_search_util.cc (right): https://codereview.chromium.org/2239753002/diff/60001/chrome/browser/net/safe_search_util.cc#newcode123 chrome/browser/net/safe_search_util.cc:123: ...
4 years, 3 months ago (2016-09-05 09:58:11 UTC) #16
ljusten (tachyonic)
treib@: PTAL https://codereview.chromium.org/2239753002/diff/60001/chrome/browser/net/safe_search_util.cc File chrome/browser/net/safe_search_util.cc (right): https://codereview.chromium.org/2239753002/diff/60001/chrome/browser/net/safe_search_util.cc#newcode123 chrome/browser/net/safe_search_util.cc:123: default: On 2016/09/05 09:58:10, Marc Treib wrote: ...
4 years, 3 months ago (2016-09-05 15:24:32 UTC) #19
Marc Treib
lgtm Thanks! My parts LGTM, one comment for policy owners. https://codereview.chromium.org/2239753002/diff/80001/chrome/test/data/policy/policy_test_cases.json File chrome/test/data/policy/policy_test_cases.json (right): https://codereview.chromium.org/2239753002/diff/80001/chrome/test/data/policy/policy_test_cases.json#newcode5 ...
4 years, 3 months ago (2016-09-05 16:01:55 UTC) #22
Elliot Glaysher
simple renaming in profiles lgtm
4 years, 3 months ago (2016-09-06 18:24:06 UTC) #27
Steven Holte
histograms lgtm
4 years, 3 months ago (2016-09-06 20:26:45 UTC) #28
mef
c/b/n/* lgtm
4 years, 3 months ago (2016-09-06 21:26:12 UTC) #29
Thiemo Nagel
I think the CL description would be clearer if most occurrences of "old" and "new" ...
4 years, 2 months ago (2016-10-05 17:38:15 UTC) #34
ljusten (tachyonic)
tnagel: PTAL https://codereview.chromium.org/2239753002/diff/140001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/2239753002/diff/140001/chrome/browser/net/chrome_network_delegate.cc#newcode317 chrome/browser/net/chrome_network_delegate.cc:317: force_youtube_restrict_->GetValue() != On 2016/10/05 17:38:14, Thiemo Nagel ...
4 years, 2 months ago (2016-10-06 10:14:46 UTC) #36
Thiemo Nagel
A few more comments, mostly small ones. Please try to avoid mixing your changes together ...
4 years, 2 months ago (2016-10-06 14:05:58 UTC) #41
ljusten (tachyonic)
tnagel: PTAL https://codereview.chromium.org/2239753002/diff/160001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/2239753002/diff/160001/chrome/browser/policy/policy_browsertest.cc#newcode1184 chrome/browser/policy/policy_browsertest.cc:1184: // Go over all combinations of (undefined,true,false) ...
4 years, 2 months ago (2016-10-06 15:16:49 UTC) #42
ljusten (tachyonic)
tnagel:PTAL https://codereview.chromium.org/2239753002/diff/180001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/2239753002/diff/180001/chrome/browser/net/chrome_network_delegate.cc#newcode321 chrome/browser/net/chrome_network_delegate.cc:321: if (value > safe_search_util::YOUTUBE_RESTRICT_OFF && On 2016/10/06 14:05:58, ...
4 years, 2 months ago (2016-10-06 16:16:59 UTC) #43
Thiemo Nagel
LGTM. (I haven't looked at supervised users as that was covered by Marc.) I'll tick ...
4 years, 2 months ago (2016-10-06 16:26:41 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2239753002/220001
4 years, 2 months ago (2016-10-06 16:27:26 UTC) #47
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 2 months ago (2016-10-06 17:31:27 UTC) #49
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/c42c0dddcb3c630cb30096d16a4485bd1025eccc Cr-Commit-Position: refs/heads/master@{#423571}
4 years, 2 months ago (2016-10-06 17:35:24 UTC) #51
Thiemo Nagel
4 years, 2 months ago (2016-10-17 09:32:43 UTC) #55
Message was sent while issue was closed.
This has been reverted in https://codereview.chromium.org/2401733002 and
re-landed in https://codereview.chromium.org/2401743003/.

Powered by Google App Engine
This is Rietveld 408576698