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

Issue 2628883008: Add a supervised user setting to allow all cookies. (Closed)

Created:
3 years, 11 months ago by Bernhard Bauer
Modified:
3 years, 11 months ago
Reviewers:
Marc Treib
CC:
chromium-reviews, msramek+watch_chromium.org, raymes+watch_chromium.org, pam+watch_chromium.org, mikecase+watch_chromium.org, agrieve+watch_chromium.org, markusheintz_, jbudorick+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a supervised user setting to allow all cookies. This prevents inexperienced users from creating website compatibility problems by blocking cookies. As this is the first supervised user content setting that is ALLOW rather than BLOCK, rename content_settings::BinaryValueMap to GlobalValueMap and add support for arbitrary content settings. Also some cleanup, most importantly: * Remove the AutoLock from the map, as it doesn't need to hold on to the lock beyond the scope of a method call. * Return a null RuleIterator when there is no content setting, which improves performance because it avoids memory churn. BUG=678278 Review-Url: https://codereview.chromium.org/2628883008 Cr-Commit-Position: refs/heads/master@{#444071} Committed: https://chromium.googlesource.com/chromium/src/+/c3d40a39d323b758f7afb314a36fbb6ee6bd7249

Patch Set 1 : x #

Patch Set 2 : comment #

Patch Set 3 : x #

Patch Set 4 : simplify #

Patch Set 5 : . #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -184 lines) Patch
M chrome/browser/content_settings/content_settings_supervised_provider.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/content_settings/content_settings_supervised_provider.cc View 1 2 3 4 chunks +19 lines, -10 lines 0 comments Download
M chrome/browser/content_settings/content_settings_supervised_provider_unittest.cc View 1 2 6 chunks +70 lines, -41 lines 0 comments Download
M chrome/browser/supervised_user/child_accounts/child_account_service.cc View 1 2 3 4 2 chunks +13 lines, -1 line 3 comments Download
M chrome/browser/supervised_user/supervised_user_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_constants.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings/core/browser/BUILD.gn View 1 chunk +2 lines, -2 lines 0 comments Download
D components/content_settings/core/browser/content_settings_binary_value_map.h View 1 chunk +0 lines, -44 lines 0 comments Download
D components/content_settings/core/browser/content_settings_binary_value_map.cc View 1 chunk +0 lines, -64 lines 0 comments Download
A + components/content_settings/core/browser/content_settings_global_value_map.h View 1 2 3 1 chunk +18 lines, -19 lines 0 comments Download
A components/content_settings/core/browser/content_settings_global_value_map.cc View 1 2 3 1 chunk +72 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
Bernhard Bauer
Please review!
3 years, 11 months ago (2017-01-13 17:12:16 UTC) #9
Marc Treib
lgtm Some context (on the bug) about *why* this change is needed would be nice ...
3 years, 11 months ago (2017-01-16 08:48:24 UTC) #12
Bernhard Bauer
On 2017/01/16 08:48:24, Marc Treib wrote: > lgtm > > Some context (on the bug) ...
3 years, 11 months ago (2017-01-16 16:28:47 UTC) #14
Marc Treib
https://codereview.chromium.org/2628883008/diff/100001/chrome/browser/supervised_user/child_accounts/child_account_service.cc File chrome/browser/supervised_user/child_accounts/child_account_service.cc (right): https://codereview.chromium.org/2628883008/diff/100001/chrome/browser/supervised_user/child_accounts/child_account_service.cc#newcode195 chrome/browser/supervised_user/child_accounts/child_account_service.cc:195: nullptr); Are these changes required? Were things broken before?
3 years, 11 months ago (2017-01-16 17:24:40 UTC) #15
Bernhard Bauer
https://codereview.chromium.org/2628883008/diff/100001/chrome/browser/supervised_user/child_accounts/child_account_service.cc File chrome/browser/supervised_user/child_accounts/child_account_service.cc (right): https://codereview.chromium.org/2628883008/diff/100001/chrome/browser/supervised_user/child_accounts/child_account_service.cc#newcode195 chrome/browser/supervised_user/child_accounts/child_account_service.cc:195: nullptr); On 2017/01/16 17:24:40, Marc Treib wrote: > Are ...
3 years, 11 months ago (2017-01-17 13:54:13 UTC) #16
Marc Treib
lgtm https://codereview.chromium.org/2628883008/diff/100001/chrome/browser/supervised_user/child_accounts/child_account_service.cc File chrome/browser/supervised_user/child_accounts/child_account_service.cc (right): https://codereview.chromium.org/2628883008/diff/100001/chrome/browser/supervised_user/child_accounts/child_account_service.cc#newcode195 chrome/browser/supervised_user/child_accounts/child_account_service.cc:195: nullptr); On 2017/01/17 13:54:13, Bernhard Bauer wrote: > ...
3 years, 11 months ago (2017-01-17 13:57:54 UTC) #17
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/2628883008/100001
3 years, 11 months ago (2017-01-17 16:08:30 UTC) #19
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 17:05:49 UTC) #22
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/c3d40a39d323b758f7afb314a36f...

Powered by Google App Engine
This is Rietveld 408576698