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

Issue 902833003: Add a HostContentSettingsMap layer for Supervised Users. (Closed)

Created:
5 years, 10 months ago by knn
Modified:
5 years, 9 months ago
CC:
chromium-reviews, markusheintz_, pam+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a HostContentSettingsMap layer for Supervised Users. Added a layer for Supervised Users in the HostContentSettingsMap. As this only needs functionality to block the entire content setting (for now), it is similar to the existing OverrideProvider. Reorganized the common code between the two providers. Updated the helper methods in PrefServiceBridge to check the HostContentSettingsMap instead of Preferences when checking whether it is managed by the custodian. BUG=455646 BUG=455640 Committed: https://crrev.com/95221ffe02b9d0782202d80cf86766686afab13a Cr-Commit-Position: refs/heads/master@{#319121}

Patch Set 1 #

Total comments: 21

Patch Set 2 : Addressed comments. #

Total comments: 14

Patch Set 3 : Addressed Comments #

Total comments: 12

Patch Set 4 : Addressed Comments #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : Addressed Comments #

Total comments: 2

Patch Set 7 : Nit #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -52 lines) Patch
M chrome/browser/android/preferences/pref_service_bridge.cc View 1 2 3 4 5 6 7 3 chunks +13 lines, -8 lines 0 comments Download
A chrome/browser/content_settings/content_settings_supervised_provider.h View 1 2 3 4 5 6 7 8 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/content_settings/content_settings_supervised_provider.cc View 1 2 3 4 5 6 7 8 9 1 chunk +101 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/supervised_user/supervised_user_constants.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_constants.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M components/content_settings.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/content_settings/core/browser/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A components/content_settings/core/browser/content_settings_binary_value_map.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
A components/content_settings/core/browser/content_settings_binary_value_map.cc View 1 2 1 chunk +65 lines, -0 lines 0 comments Download
M components/content_settings/core/browser/content_settings_override_provider.h View 2 chunks +2 lines, -1 line 0 comments Download
M components/content_settings/core/browser/content_settings_override_provider.cc View 5 chunks +12 lines, -35 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M components/content_settings/core/common/content_settings.h View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
knn
PTAL.
5 years, 10 months ago (2015-02-05 11:41:28 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/902833003/diff/1/chrome/browser/supervised_user/supervised_user_constants.h File chrome/browser/supervised_user/supervised_user_constants.h (left): https://codereview.chromium.org/902833003/diff/1/chrome/browser/supervised_user/supervised_user_constants.h#oldcode12 chrome/browser/supervised_user/supervised_user_constants.h:12: extern const char kCameraMicAllowed[]; So the old value was ...
5 years, 10 months ago (2015-02-05 12:07:52 UTC) #3
knn
PTAL. https://codereview.chromium.org/902833003/diff/1/chrome/browser/supervised_user/supervised_user_constants.h File chrome/browser/supervised_user/supervised_user_constants.h (left): https://codereview.chromium.org/902833003/diff/1/chrome/browser/supervised_user/supervised_user_constants.h#oldcode12 chrome/browser/supervised_user/supervised_user_constants.h:12: extern const char kCameraMicAllowed[]; On 2015/02/05 12:07:51, Bernhard ...
5 years, 10 months ago (2015-02-26 12:07:30 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/902833003/diff/1/components/content_settings/core/browser/content_settings_binary_value_map.h File components/content_settings/core/browser/content_settings_binary_value_map.h (right): https://codereview.chromium.org/902833003/diff/1/components/content_settings/core/browser/content_settings_binary_value_map.h#newcode28 components/content_settings/core/browser/content_settings_binary_value_map.h:28: RuleIterator* GetRuleIterator(ContentSettingsType content_type, On 2015/02/26 12:07:29, knn wrote: > ...
5 years, 10 months ago (2015-02-26 12:44:58 UTC) #5
knn
You also reviewed code that I did not write in chrome/browser/android/preferences/pref_service_bridge.cc I should probably do ...
5 years, 10 months ago (2015-02-26 16:18:57 UTC) #6
Bernhard Bauer
On 2015/02/26 16:18:57, knn wrote: > You also reviewed code that I did not write ...
5 years, 10 months ago (2015-02-26 18:03:54 UTC) #7
knn
PTAL. https://codereview.chromium.org/902833003/diff/40001/chrome/browser/content_settings/content_settings_supervised_provider.h File chrome/browser/content_settings/content_settings_supervised_provider.h (right): https://codereview.chromium.org/902833003/diff/40001/chrome/browser/content_settings/content_settings_supervised_provider.h#newcode16 chrome/browser/content_settings/content_settings_supervised_provider.h:16: class Lock; On 2015/02/26 18:03:54, Bernhard (back on ...
5 years, 10 months ago (2015-02-27 10:43:53 UTC) #8
Bernhard Bauer
https://codereview.chromium.org/902833003/diff/40001/chrome/browser/content_settings/content_settings_supervised_provider.h File chrome/browser/content_settings/content_settings_supervised_provider.h (right): https://codereview.chromium.org/902833003/diff/40001/chrome/browser/content_settings/content_settings_supervised_provider.h#newcode16 chrome/browser/content_settings/content_settings_supervised_provider.h:16: class Lock; On 2015/02/26 18:03:54, Bernhard Bauer wrote: > ...
5 years, 10 months ago (2015-02-27 11:20:25 UTC) #9
knn
PTAL https://codereview.chromium.org/902833003/diff/40001/chrome/browser/content_settings/content_settings_supervised_provider.h File chrome/browser/content_settings/content_settings_supervised_provider.h (right): https://codereview.chromium.org/902833003/diff/40001/chrome/browser/content_settings/content_settings_supervised_provider.h#newcode16 chrome/browser/content_settings/content_settings_supervised_provider.h:16: class Lock; On 2015/02/27 11:20:25, Bernhard Bauer wrote: ...
5 years, 9 months ago (2015-02-27 12:05:15 UTC) #10
Bernhard Bauer
LGTM w/ a nit: https://codereview.chromium.org/902833003/diff/100001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://codereview.chromium.org/902833003/diff/100001/chrome/browser/profiles/profile_impl.cc#newcode1046 chrome/browser/profiles/profile_impl.cc:1046: scoped_ptr<content_settings::SupervisedProvider> supervised_provider( This should be ...
5 years, 9 months ago (2015-02-27 12:18:42 UTC) #11
knn
+erg for OWNERS review. Elliot: Please review changes in off_the_record_profile_impl.cc profile_impl.cc Registering the supervised user ...
5 years, 9 months ago (2015-02-27 12:40:44 UTC) #13
Elliot Glaysher
lgtm
5 years, 9 months ago (2015-03-02 19:09:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/902833003/180001
5 years, 9 months ago (2015-03-04 00:24:57 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/40739)
5 years, 9 months ago (2015-03-04 01:57:09 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/902833003/220001
5 years, 9 months ago (2015-03-04 19:49:31 UTC) #23
commit-bot: I haz the power
Committed patchset #11 (id:220001)
5 years, 9 months ago (2015-03-04 20:42:55 UTC) #24
commit-bot: I haz the power
5 years, 9 months ago (2015-03-04 20:43:40 UTC) #25
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/95221ffe02b9d0782202d80cf86766686afab13a
Cr-Commit-Position: refs/heads/master@{#319121}

Powered by Google App Engine
This is Rietveld 408576698