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

Issue 2641343002: Use source parameter to determine policy priority. (Closed)

Created:
3 years, 11 months ago by Marton Hunyady
Modified:
3 years, 11 months ago
Reviewers:
Thiemo Nagel
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use source parameter too to determine policy priority. This fixes the problem of Enterprise default policies sometimes overwriting Active Directory-set policies. BUG=683150 Review-Url: https://codereview.chromium.org/2641343002 Cr-Commit-Position: refs/heads/master@{#445389} Committed: https://chromium.googlesource.com/chromium/src/+/877b2113a4375f07ec1cd07a7ab4c417d957a37e

Patch Set 1 #

Patch Set 2 : Add unit test. #

Total comments: 2

Patch Set 3 : Add comment, make code more readable. #

Total comments: 2

Patch Set 4 : Fix comment format. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -5 lines) Patch
M components/policy/core/common/policy_map.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/policy/core/common/policy_map.cc View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M components/policy/core/common/policy_map_unittest.cc View 1 4 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 35 (21 generated)
Marton Hunyady
3 years, 11 months ago (2017-01-20 14:53:54 UTC) #3
Thiemo Nagel
I think it would be a nice idea to add a method-level comment which details ...
3 years, 11 months ago (2017-01-23 13:13:52 UTC) #8
Marton Hunyady
Done. https://codereview.chromium.org/2641343002/diff/20001/components/policy/core/common/policy_map.cc File components/policy/core/common/policy_map.cc (right): https://codereview.chromium.org/2641343002/diff/20001/components/policy/core/common/policy_map.cc#newcode41 components/policy/core/common/policy_map.cc:41: if (scope == other.scope) On 2017/01/23 13:13:52, Thiemo ...
3 years, 11 months ago (2017-01-23 13:27:50 UTC) #11
Thiemo Nagel
lgtm % nit https://codereview.chromium.org/2641343002/diff/40001/components/policy/core/common/policy_map.h File components/policy/core/common/policy_map.h (right): https://codereview.chromium.org/2641343002/diff/40001/components/policy/core/common/policy_map.h#newcode48 components/policy/core/common/policy_map.h:48: // the fields are level > ...
3 years, 11 months ago (2017-01-23 13:32:51 UTC) #12
Marton Hunyady
https://codereview.chromium.org/2641343002/diff/40001/components/policy/core/common/policy_map.h File components/policy/core/common/policy_map.h (right): https://codereview.chromium.org/2641343002/diff/40001/components/policy/core/common/policy_map.h#newcode48 components/policy/core/common/policy_map.h:48: // the fields are level > scope > source. ...
3 years, 11 months ago (2017-01-23 13:36:17 UTC) #13
Thiemo Nagel
> Done. still lgtm
3 years, 11 months ago (2017-01-23 14:03:39 UTC) #18
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/2641343002/60001
3 years, 11 months ago (2017-01-23 14:53:55 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/334313) win_clang on master.tryserver.chromium.win (JOB_FAILED, ...
3 years, 11 months ago (2017-01-23 14:54:48 UTC) #22
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/2641343002/60001
3 years, 11 months ago (2017-01-23 15:15:43 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/334324)
3 years, 11 months ago (2017-01-23 15:16:38 UTC) #26
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/2641343002/60001
3 years, 11 months ago (2017-01-23 15:29:52 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/156725)
3 years, 11 months ago (2017-01-23 15:30:43 UTC) #30
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/2641343002/60001
3 years, 11 months ago (2017-01-23 16:47:51 UTC) #32
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 16:52:51 UTC) #35
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/877b2113a4375f07ec1cd07a7ab4...

Powered by Google App Engine
This is Rietveld 408576698