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

Issue 1824743002: Drop non-user policy in ConfigDirPolicyLoader on Chrome OS. (Closed)

Created:
4 years, 9 months ago by Thiemo Nagel
Modified:
4 years, 3 months ago
Reviewers:
cschuet (SLOW)
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Drop non-user policy in ConfigDirPolicyLoader on Chrome OS. Device Policy that is read through ConfigDirPolicyLoader is ignored yet it is still displayed on chrome://policy which is confusing. This CL changes ConfigDirPolicyLoader to drop such policy already during reading. (To be consistent, unknown policies loaded through ConfigDirPolicyLoader are dropped as well.) Some refactoring was required to fulfill the (now) conflicting requirements of ConfigurationPolicyProviderTest for different platforms. BUG=None Committed: https://crrev.com/7cf59c2689f31a12f04cd0bf1a9ba6c69adc6066 Cr-Commit-Position: refs/heads/master@{#405756}

Patch Set 1 #

Patch Set 2 : Don't clutter PolicyMap with details of specific use cases. #

Patch Set 3 : Fix line-wrap. #

Patch Set 4 : Rebase. #

Patch Set 5 : Fix tests. #

Patch Set 6 : Fix tests without breaking other tests. #

Patch Set 7 : Testing the tests -- not for landing. #

Patch Set 8 : Not for landing. #

Patch Set 9 : Moar logging. #

Patch Set 10 : Another attempt. #

Patch Set 11 : Polish. #

Patch Set 12 : Rebase. #

Patch Set 13 : Fix test. #

Patch Set 14 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -80 lines) Patch
M components/policy/core/browser/configuration_policy_pref_store.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -1 line 0 comments Download
M components/policy/core/common/config_dir_policy_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +16 lines, -0 lines 0 comments Download
M components/policy/core/common/config_dir_policy_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +113 lines, -1 line 0 comments Download
M components/policy/core/common/configuration_policy_provider_test.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +21 lines, -4 lines 0 comments Download
M components/policy/core/common/configuration_policy_provider_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 13 chunks +62 lines, -53 lines 0 comments Download
M components/policy/core/common/policy_loader_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -1 line 0 comments Download
M components/policy/core/common/policy_map.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -6 lines 0 comments Download
M components/policy/core/common/policy_map.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +12 lines, -11 lines 0 comments Download
M components/policy/core/common/policy_map_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +34 lines, -2 lines 0 comments Download
M components/policy/core/common/policy_types.h View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 24 (10 generated)
Thiemo Nagel
Hi Christoph, as discussed, could you please take a look? Thank you! Thiemo
4 years, 9 months ago (2016-03-21 18:32:26 UTC) #2
cschuet (SLOW)
On 2016/03/21 18:32:26, Thiemo Nagel wrote: > Hi Christoph, > > as discussed, could you ...
4 years, 9 months ago (2016-03-21 22:43:46 UTC) #3
Thiemo Nagel
I've better separated concerns now (and added a test). Could you please take another look? ...
4 years, 9 months ago (2016-03-22 11:35:31 UTC) #5
cschuet (SLOW)
On 2016/03/22 11:35:31, Thiemo Nagel wrote: > I've better separated concerns now (and added a ...
4 years, 9 months ago (2016-03-22 11:39:07 UTC) #6
Thiemo Nagel
> lgtm Many thanks!
4 years, 9 months ago (2016-03-22 12:00:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1824743002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1824743002/60001
4 years, 9 months ago (2016-03-22 12:00:37 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/184739) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 9 months ago (2016-03-22 12:28:50 UTC) #12
Thiemo Nagel
That escalated quickly... initially I thought this was a 20-line change. Could you please take ...
4 years, 9 months ago (2016-03-24 23:37:19 UTC) #14
Thiemo Nagel
Hi Christoph, could you please take another look? Thank you, Thiemo
4 years, 6 months ago (2016-06-02 13:25:53 UTC) #15
Thiemo Nagel
Ping! Ping! Ping!
4 years, 5 months ago (2016-07-01 14:00:43 UTC) #16
cschuet (SLOW)
On 2016/07/01 14:00:43, Thiemo Nagel wrote: > Ping! Ping! Ping! lgtm
4 years, 5 months ago (2016-07-04 06:57:05 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/1824743002/280001
4 years, 5 months ago (2016-07-15 13:40:40 UTC) #20
commit-bot: I haz the power
Committed patchset #14 (id:280001)
4 years, 5 months ago (2016-07-15 14:50:38 UTC) #22
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 14:52:16 UTC) #24
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/7cf59c2689f31a12f04cd0bf1a9ba6c69adc6066
Cr-Commit-Position: refs/heads/master@{#405756}

Powered by Google App Engine
This is Rietveld 408576698