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

Issue 4164006: Generate example JSON policy configuration files (Closed)

Created:
10 years, 1 month ago by gfeher
Modified:
9 years, 7 months ago
Reviewers:
markusheintz_, Jói
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Generate example JSON policy configuration files Also fix filtering of single (non-groupped) policies by platforms. BUG=56531 TEST=JsonWriterUnittest.*,PolicyTemplateGeneratorUnittest.testPolicyFiltering Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64748

Patch Set 1 #

Patch Set 2 : nits, test filtering of single policies #

Patch Set 3 : " #

Total comments: 16

Patch Set 4 : address reviewer comments #

Patch Set 5 : nicer multiline strings #

Patch Set 6 : make all the multiline strings pretty #

Patch Set 7 : nit #

Patch Set 8 : " #

Unified diffs Side-by-side diffs Delta from patch set Stats (+327 lines, -21 lines) Patch
M chrome/app/policy/policy_templates.grd View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M tools/grit/grit/format/policy_templates/policy_template_generator_unittest.py View 2 3 1 chunk +23 lines, -17 lines 0 comments Download
A tools/grit/grit/format/policy_templates/writers/json_writer.py View 1 2 1 chunk +65 lines, -0 lines 0 comments Download
A tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py View 1 2 3 4 5 6 1 chunk +234 lines, -0 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/template_writer.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/grit/grit/node/misc.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/grit/grit/tool/build.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
gfeher
Please review my CL.
10 years, 1 month ago (2010-10-27 13:46:59 UTC) #1
Jói
LGTM
10 years, 1 month ago (2010-10-27 15:13:10 UTC) #2
markusheintz_
Do all unit-tests pass? :-) Here are some initial comments. http://codereview.chromium.org/4164006/diff/13001/14002 File tools/grit/grit/format/policy_templates/policy_template_generator_unittest.py (right): http://codereview.chromium.org/4164006/diff/13001/14002#newcode291 ...
10 years, 1 month ago (2010-10-27 15:35:10 UTC) #3
gfeher
> Do all unit-tests pass? :-) This time they do. :) http://codereview.chromium.org/4164006/diff/13001/14002 File tools/grit/grit/format/policy_templates/policy_template_generator_unittest.py (right): ...
10 years, 1 month ago (2010-10-27 16:14:05 UTC) #4
markusheintz_
http://codereview.chromium.org/4164006/diff/13001/14004 File tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py (right): http://codereview.chromium.org/4164006/diff/13001/14004#newcode72 tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py:72: expected_output = '''{ pls see comment below. http://codereview.chromium.org/4164006/diff/13001/14004#newcode101 tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py:101: ...
10 years, 1 month ago (2010-10-27 17:11:21 UTC) #5
gfeher
http://codereview.chromium.org/4164006/diff/13001/14004 File tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py (right): http://codereview.chromium.org/4164006/diff/13001/14004#newcode72 tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py:72: expected_output = '''{ On 2010/10/27 17:11:21, markusheintz_ wrote: > ...
10 years, 1 month ago (2010-10-27 17:20:11 UTC) #6
gfeher
Made more multiline strings nicer.
10 years, 1 month ago (2010-11-02 08:41:19 UTC) #7
markusheintz_
10 years, 1 month ago (2010-11-02 15:17:32 UTC) #8
LGTM with nit if you like: %s/\\'/"/g

Powered by Google App Engine
This is Rietveld 408576698