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

Issue 2400703002: Fix policy checks for chrome://policy (Closed)

Created:
4 years, 2 months ago by aberent
Modified:
4 years, 2 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix policy checks for chrome://policy chrome://policy is supposed to display errors in policies. There were, however, two problems: 1 - When run without a pref argument (as it is when constructing this page) ConfigurationPolicyHandlerList::ApplyPolicySettings was skipping some checks. 2 - The policy checks for the search policies were exiting on the first error, and hence were only reporting at most one error. BUG=637372 Committed: https://crrev.com/236e80aa72907e388dd1dc1e962939ad61b5514d Cr-Commit-Position: refs/heads/master@{#425056}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Add comment so that this doesnt get broken again #

Total comments: 4

Patch Set 3 : Fix nits in default_search_policy_handler.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -10 lines) Patch
M components/policy/core/browser/configuration_policy_handler_list.cc View 1 2 chunks +9 lines, -7 lines 0 comments Download
M components/search_engines/default_search_policy_handler.cc View 1 2 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
aberent
pkasting@chromium.org: Please review changes in default_search_policy_handler.cc tnagel@chromium.org: Please review changes in configuration_policy_handler_list.cc
4 years, 2 months ago (2016-10-06 16:33:57 UTC) #2
Thiemo Nagel
LGTM configuration_policy_handler_list.cc
4 years, 2 months ago (2016-10-06 17:05:25 UTC) #5
Thiemo Nagel
Some optional comments. https://codereview.chromium.org/2400703002/diff/1/components/policy/core/browser/configuration_policy_handler_list.cc File components/policy/core/browser/configuration_policy_handler_list.cc (right): https://codereview.chromium.org/2400703002/diff/1/components/policy/core/browser/configuration_policy_handler_list.cc#newcode35 components/policy/core/browser/configuration_policy_handler_list.cc:35: PolicyErrorMap scoped_errors; Optional: Add DCHECK(prefs || ...
4 years, 2 months ago (2016-10-06 17:05:43 UTC) #6
Thiemo Nagel
https://codereview.chromium.org/2400703002/diff/1/components/policy/core/browser/configuration_policy_handler_list.cc File components/policy/core/browser/configuration_policy_handler_list.cc (right): https://codereview.chromium.org/2400703002/diff/1/components/policy/core/browser/configuration_policy_handler_list.cc#newcode36 components/policy/core/browser/configuration_policy_handler_list.cc:36: if (!errors) Thinking some more about this: Since we'll ...
4 years, 2 months ago (2016-10-10 11:28:43 UTC) #9
aberent
https://codereview.chromium.org/2400703002/diff/1/components/policy/core/browser/configuration_policy_handler_list.cc File components/policy/core/browser/configuration_policy_handler_list.cc (right): https://codereview.chromium.org/2400703002/diff/1/components/policy/core/browser/configuration_policy_handler_list.cc#newcode35 components/policy/core/browser/configuration_policy_handler_list.cc:35: PolicyErrorMap scoped_errors; On 2016/10/06 17:05:43, Thiemo Nagel (slow) wrote: ...
4 years, 2 months ago (2016-10-10 13:38:07 UTC) #10
Thiemo Nagel
Thank you! configuration_policy_handler_list.cc still LGTM.
4 years, 2 months ago (2016-10-10 14:04:38 UTC) #11
Peter Kasting
LGTM https://codereview.chromium.org/2400703002/diff/20001/components/search_engines/default_search_policy_handler.cc File components/search_engines/default_search_policy_handler.cc (right): https://codereview.chromium.org/2400703002/diff/20001/components/search_engines/default_search_policy_handler.cc#newcode304 components/search_engines/default_search_policy_handler.cc:304: bool all_ok = true; Nit: I had to ...
4 years, 2 months ago (2016-10-10 19:39:34 UTC) #16
aberent
https://codereview.chromium.org/2400703002/diff/20001/components/search_engines/default_search_policy_handler.cc File components/search_engines/default_search_policy_handler.cc (right): https://codereview.chromium.org/2400703002/diff/20001/components/search_engines/default_search_policy_handler.cc#newcode304 components/search_engines/default_search_policy_handler.cc:304: bool all_ok = true; On 2016/10/10 19:39:33, Peter Kasting ...
4 years, 2 months ago (2016-10-13 15:10:01 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/2400703002/40001
4 years, 2 months ago (2016-10-13 15:10:23 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-13 16:39:20 UTC) #21
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 16:40:53 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/236e80aa72907e388dd1dc1e962939ad61b5514d
Cr-Commit-Position: refs/heads/master@{#425056}

Powered by Google App Engine
This is Rietveld 408576698