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

Issue 4704006: Add version information to the policy templates (Closed)

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

Description

Add version information to the policy templates Add for each policy the version number of Chrome when is was introduced. Update platform-based policy filtering to use the new template format (no new logic introduced.) Update the HTML documentation writer to use the new version numbers. BUG=62500 TEST=PolicyTemplateGeneratorUnittest.testPolicyFiltering,DocWriterUnittest.testAddPolicyDetails,DocWriterUnittest.testAddPolicySection Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66601

Patch Set 1 #

Patch Set 2 : " #

Patch Set 3 : " #

Patch Set 4 : set cros version #

Total comments: 12

Patch Set 5 : address comments and refactor #

Patch Set 6 : additional nits #

Patch Set 7 : rename placeholder #

Total comments: 9

Patch Set 8 : variable rename #

Patch Set 9 : rebase before commit #

Patch Set 10 : fix json records of merged new policies #

Patch Set 11 : fix typo in merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -199 lines) Patch
M chrome/app/policy/policy_templates.grd View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -6 lines 0 comments Download
M chrome/app/policy/policy_templates.json View 1 2 3 4 5 6 7 8 9 10 42 chunks +75 lines, -106 lines 0 comments Download
M tools/grit/grit/format/policy_templates/policy_template_generator.py View 5 6 7 5 chunks +64 lines, -7 lines 0 comments Download
M tools/grit/grit/format/policy_templates/policy_template_generator_unittest.py View 1 2 3 4 8 chunks +25 lines, -24 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/adm_writer_unittest.py View 6 chunks +7 lines, -7 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/adml_writer_unittest.py View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/admx_writer_unittest.py View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/doc_writer.py View 1 2 3 4 5 6 4 chunks +30 lines, -9 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/doc_writer_unittest.py View 1 2 3 4 5 6 4 chunks +26 lines, -10 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py View 6 chunks +7 lines, -7 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/plist_strings_writer_unittest.py View 4 chunks +4 lines, -4 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/plist_writer_unittest.py View 4 chunks +4 lines, -4 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/template_writer.py View 1 2 3 4 5 3 chunks +13 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
gfeher
Please review this CL!
10 years, 1 month ago (2010-11-09 18:15:36 UTC) #1
gfeher
Now with your correct address. Jean-Luc, please review this when you'll have time!
10 years, 1 month ago (2010-11-09 20:27:25 UTC) #2
jeanluc
I've entered my comments but am getting an error when trying to publish. Can you ...
10 years, 1 month ago (2010-11-10 05:11:50 UTC) #3
gfeher
Thank you. Unfortunately I can't see any of them. This seems to be bug http://crbug.com/55888 ...
10 years, 1 month ago (2010-11-10 08:45:54 UTC) #4
jeanluc
That must be it. I could not see the side by side json file either. ...
10 years, 1 month ago (2010-11-10 15:51:37 UTC) #5
jeanluc1
Comments on the .json file that can't be done directly for some reason... ------ +# ...
10 years, 1 month ago (2010-11-10 15:52:14 UTC) #6
gfeher
Please take another look. http://codereview.chromium.org/4704006/diff/11001/tools/grit/grit/format/policy_templates/writers/doc_writer.py File tools/grit/grit/format/policy_templates/writers/doc_writer.py (left): http://codereview.chromium.org/4704006/diff/11001/tools/grit/grit/format/policy_templates/writers/doc_writer.py#oldcode457 tools/grit/grit/format/policy_templates/writers/doc_writer.py:457: 'chrome_os': self.config['os_name'], On 2010/11/10 15:52:15, ...
10 years, 1 month ago (2010-11-11 18:59:04 UTC) #7
jeanluc1
http://codereview.chromium.org/4704006/diff/37001/chrome/app/policy/policy_templates.grd File chrome/app/policy/policy_templates.grd (right): http://codereview.chromium.org/4704006/diff/37001/chrome/app/policy/policy_templates.grd#newcode660 chrome/app/policy/policy_templates.grd:660: since version <ph name="SINCE_VERSION">$6<ex>8</ex></ph> Why not use $1? http://codereview.chromium.org/4704006/diff/37001/chrome/app/policy/policy_templates.grd#newcode664 ...
10 years, 1 month ago (2010-11-12 01:44:48 UTC) #8
gfeher
http://codereview.chromium.org/4704006/diff/37001/chrome/app/policy/policy_templates.grd File chrome/app/policy/policy_templates.grd (right): http://codereview.chromium.org/4704006/diff/37001/chrome/app/policy/policy_templates.grd#newcode660 chrome/app/policy/policy_templates.grd:660: since version <ph name="SINCE_VERSION">$6<ex>8</ex></ph> On 2010/11/12 01:44:48, jeanluc1 wrote: ...
10 years, 1 month ago (2010-11-12 17:58:00 UTC) #9
gfeher
Please take another look.
10 years, 1 month ago (2010-11-16 17:25:37 UTC) #10
jeanluc1
10 years, 1 month ago (2010-11-16 18:09:45 UTC) #11
LGTM

Powered by Google App Engine
This is Rietveld 408576698