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

Issue 8413037: Display policy parsing errors in about:policy. (Closed)

Created:
9 years, 1 month ago by Joao da Silva
Modified:
9 years, 1 month ago
CC:
chromium-reviews, arv (Not doing code reviews), Paweł Hajdan Jr.
Visibility:
Public.

Description

Display policy parsing errors in about:policy. BUG=99178 TEST=Set policy values with the wrong types (e.g. ShowHomeButton = 2) or with conflicting values. The "status" column in about:policy shows a description of the error. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107749

Patch Set 1 #

Total comments: 11

Patch Set 2 : Reviewed, added link to bug for user/device policy TODO. #

Total comments: 2

Patch Set 3 : Removed extra byte, rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -70 lines) Patch
M chrome/browser/policy/configuration_policy_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_reader.cc View 1 4 chunks +28 lines, -15 lines 0 comments Download
M chrome/browser/policy/configuration_policy_reader_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/policy/policy_error_map.h View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/policy/policy_error_map.cc View 2 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/policy/policy_status_info.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/resources/policy.html View 1 1 chunk +34 lines, -34 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Joao da Silva
Please review. Thanks!
9 years, 1 month ago (2011-10-28 15:07:41 UTC) #1
Mattias Nissler (ping if slow)
http://codereview.chromium.org/8413037/diff/1/chrome/browser/policy/configuration_policy_handler.cc File chrome/browser/policy/configuration_policy_handler.cc (right): http://codereview.chromium.org/8413037/diff/1/chrome/browser/policy/configuration_policy_handler.cc#newcode1030 chrome/browser/policy/configuration_policy_handler.cc:1030: errors->AddError(kPolicyProxyBypassList, entry.error_message_id); good catch! http://codereview.chromium.org/8413037/diff/1/chrome/browser/policy/configuration_policy_reader.cc File chrome/browser/policy/configuration_policy_reader.cc (right): http://codereview.chromium.org/8413037/diff/1/chrome/browser/policy/configuration_policy_reader.cc#newcode85 ...
9 years, 1 month ago (2011-10-28 15:18:50 UTC) #2
Joao da Silva
Reviewed, please have another look. http://codereview.chromium.org/8413037/diff/1/chrome/browser/policy/configuration_policy_reader.cc File chrome/browser/policy/configuration_policy_reader.cc (right): http://codereview.chromium.org/8413037/diff/1/chrome/browser/policy/configuration_policy_reader.cc#newcode85 chrome/browser/policy/configuration_policy_reader.cc:85: for (handler = handlers->begin(); ...
9 years, 1 month ago (2011-10-28 15:44:59 UTC) #3
Mattias Nissler (ping if slow)
On 2011/10/28 15:44:59, Joao da Silva wrote: > Reviewed, please have another look. Wait, you ...
9 years, 1 month ago (2011-10-28 16:07:41 UTC) #4
Mattias Nissler (ping if slow)
http://codereview.chromium.org/8413037/diff/1009/chrome/browser/policy/policy_error_map.h File chrome/browser/policy/policy_error_map.h (right): http://codereview.chromium.org/8413037/diff/1009/chrome/browser/policy/policy_error_map.h#newcode44 chrome/browser/policy/policy_error_map.h:44: // Returns all the errors messages stored for |policy|, ...
9 years, 1 month ago (2011-10-28 16:07:45 UTC) #5
Joao da Silva
Fixed the Engrish. Prease ave anoder luk. http://codereview.chromium.org/8413037/diff/1009/chrome/browser/policy/policy_error_map.h File chrome/browser/policy/policy_error_map.h (right): http://codereview.chromium.org/8413037/diff/1009/chrome/browser/policy/policy_error_map.h#newcode44 chrome/browser/policy/policy_error_map.h:44: // Returns ...
9 years, 1 month ago (2011-10-28 16:14:10 UTC) #6
Mattias Nissler (ping if slow)
I meant to give the magic 4 bytes on the last round already, but forgot ...
9 years, 1 month ago (2011-10-28 16:23:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/8413037/9
9 years, 1 month ago (2011-10-28 16:26:55 UTC) #8
commit-bot: I haz the power
9 years, 1 month ago (2011-10-28 17:40:38 UTC) #9
Change committed as 107749

Powered by Google App Engine
This is Rietveld 408576698