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

Issue 2414663002: Fix log spew for "_comment..." policies. (Closed)

Created:
4 years, 2 months ago by Thiemo Nagel
Modified:
4 years, 2 months ago
Reviewers:
pastarmovj
CC:
chromium-reviews, Mattias Nissler (ping if slow)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix log spew for "_comment..." policies. Following popular demand revert the bad parts of "Drop non-user policy in ConfigDirPolicyLoader on Chrome OS." (7cf59c2689f31) and move the filtering logic to ConfigurationPolicyHandlerList. BUG=644571 Committed: https://crrev.com/f3cb017aa1b4a7e2239ca2abfc62672508fead70 Cr-Commit-Position: refs/heads/master@{#425995}

Patch Set 1 #

Patch Set 2 : Compilation fix. #

Total comments: 4

Patch Set 3 : Rebase. #

Patch Set 4 : Fix nullptr dereference. #

Total comments: 2

Patch Set 5 : Rename EraseGeneric() to FilterErase(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -251 lines) Patch
M components/policy/core/browser/configuration_policy_handler_list.h View 1 2 3 4 chunks +8 lines, -6 lines 0 comments Download
M components/policy/core/browser/configuration_policy_handler_list.cc View 1 2 3 2 chunks +53 lines, -18 lines 0 comments Download
M components/policy/core/common/config_dir_policy_loader.cc View 3 chunks +0 lines, -16 lines 0 comments Download
M components/policy/core/common/config_dir_policy_loader_unittest.cc View 2 chunks +1 line, -113 lines 0 comments Download
M components/policy/core/common/configuration_policy_provider_test.h View 4 chunks +4 lines, -21 lines 0 comments Download
M components/policy/core/common/configuration_policy_provider_test.cc View 13 chunks +53 lines, -62 lines 0 comments Download
M components/policy/core/common/policy_loader_win_unittest.cc View 2 chunks +1 line, -7 lines 0 comments Download
M components/policy/core/common/policy_map.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M components/policy/core/common/policy_map.cc View 1 2 3 4 2 chunks +19 lines, -8 lines 0 comments Download

Messages

Total messages: 34 (23 generated)
Thiemo Nagel
Mattias cc fyi since you were opinionated about the CL that I'm (partially) reverting now.
4 years, 2 months ago (2016-10-12 12:18:20 UTC) #10
Thiemo Nagel
Hi Julian, could you please take a look? Thank you, Thiemo
4 years, 2 months ago (2016-10-12 12:19:19 UTC) #12
pastarmovj
https://codereview.chromium.org/2414663002/diff/40001/components/policy/core/browser/configuration_policy_handler_list.cc File components/policy/core/browser/configuration_policy_handler_list.cc (right): https://codereview.chromium.org/2414663002/diff/40001/components/policy/core/browser/configuration_policy_handler_list.cc#newcode55 components/policy/core/browser/configuration_policy_handler_list.cc:55: for (auto handler : handlers_) { I think it ...
4 years, 2 months ago (2016-10-12 12:30:56 UTC) #13
Thiemo Nagel
Thanks a lot! CIL https://codereview.chromium.org/2414663002/diff/40001/components/policy/core/browser/configuration_policy_handler_list.cc File components/policy/core/browser/configuration_policy_handler_list.cc (right): https://codereview.chromium.org/2414663002/diff/40001/components/policy/core/browser/configuration_policy_handler_list.cc#newcode55 components/policy/core/browser/configuration_policy_handler_list.cc:55: for (auto handler : handlers_) ...
4 years, 2 months ago (2016-10-12 12:46:37 UTC) #14
pastarmovj
lgtm
4 years, 2 months ago (2016-10-12 12:59:51 UTC) #17
Thiemo Nagel
Hi Julian, may I ask you to take a look at the delta from PS#3 ...
4 years, 2 months ago (2016-10-18 15:14:17 UTC) #26
pastarmovj
still lgtm. https://codereview.chromium.org/2414663002/diff/80001/components/policy/core/common/policy_map.h File components/policy/core/common/policy_map.h (right): https://codereview.chromium.org/2414663002/diff/80001/components/policy/core/common/policy_map.h#newcode132 components/policy/core/common/policy_map.h:132: void EraseGeneric(const base::Callback<bool(const const_iterator)>& filter, nit: I ...
4 years, 2 months ago (2016-10-18 16:20:11 UTC) #27
Thiemo Nagel
Thanks a lot, Julian! https://codereview.chromium.org/2414663002/diff/80001/components/policy/core/common/policy_map.h File components/policy/core/common/policy_map.h (right): https://codereview.chromium.org/2414663002/diff/80001/components/policy/core/common/policy_map.h#newcode132 components/policy/core/common/policy_map.h:132: void EraseGeneric(const base::Callback<bool(const const_iterator)>& filter, ...
4 years, 2 months ago (2016-10-18 16:31:50 UTC) #28
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/2414663002/100001
4 years, 2 months ago (2016-10-18 16:32:26 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 2 months ago (2016-10-18 17:13:08 UTC) #32
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 17:15:19 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f3cb017aa1b4a7e2239ca2abfc62672508fead70
Cr-Commit-Position: refs/heads/master@{#425995}

Powered by Google App Engine
This is Rietveld 408576698