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

Issue 544113002: Add optional mandatory policy setting for template generation (Closed)

Created:
6 years, 3 months ago by kaliamoorthi
Modified:
6 years, 3 months ago
CC:
grit-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/grit-i18n.git@master
Visibility:
Public.

Description

Add optional mandatory policy setting for template generation This CL modifies template writer such that mandatory policy templates are not generated when a flag is set. BUG=410856

Patch Set 1 #

Total comments: 1

Patch Set 2 : Adds unit tests, fixes doc and adm writer #

Total comments: 4

Patch Set 3 : Adds support for new template writers #

Total comments: 2

Patch Set 4 : Rewords the comment as suggested. #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+372 lines, -16 lines) Patch
M grit/format/policy_templates/writer_configuration.py View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/adm_writer.py View 1 1 chunk +4 lines, -3 lines 0 comments Download
M grit/format/policy_templates/writers/adm_writer_unittest.py View 1 1 chunk +64 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/admx_writer.py View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M grit/format/policy_templates/writers/admx_writer_unittest.py View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/doc_writer.py View 1 2 3 4 3 chunks +13 lines, -3 lines 0 comments Download
M grit/format/policy_templates/writers/doc_writer_unittest.py View 1 2 3 4 3 chunks +58 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/json_writer.py View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/json_writer_unittest.py View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/plist_writer.py View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
M grit/format/policy_templates/writers/plist_writer_unittest.py View 1 2 1 chunk +102 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/reg_writer.py View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M grit/format/policy_templates/writers/reg_writer_unittest.py View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/template_writer.py View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
kaliamoorthi
PTAL
6 years, 3 months ago (2014-09-05 14:48:15 UTC) #2
Joao da Silva
Can you add a new test that checks this? Also, see this for an example: ...
6 years, 3 months ago (2014-09-05 14:55:05 UTC) #3
kaliamoorthi
This CL fixes your previous comments and adds unit tests. Added pastarmovj@ for reviewing windows ...
6 years, 3 months ago (2014-09-08 09:30:56 UTC) #5
Joao da Silva
This is in the right direction. There are more writers to fix: json_writer: for the ...
6 years, 3 months ago (2014-09-08 09:49:55 UTC) #6
kaliamoorthi
PTAL https://codereview.chromium.org/544113002/diff/20001/grit/format/policy_templates/writers/doc_writer.py File grit/format/policy_templates/writers/doc_writer.py (right): https://codereview.chromium.org/544113002/diff/20001/grit/format/policy_templates/writers/doc_writer.py#newcode182 grit/format/policy_templates/writers/doc_writer.py:182: key_name = self.config['win_reg_mandatory_key_name'] On 2014/09/08 09:49:55, Joao da ...
6 years, 3 months ago (2014-09-08 13:28:44 UTC) #7
Joao da Silva
lgtm Please fix the strings as suggested inline. Note that this CL can't be landed ...
6 years, 3 months ago (2014-09-08 13:41:21 UTC) #8
kaliamoorthi
I updated the JSON text. Please land it.
6 years, 3 months ago (2014-09-08 13:47:08 UTC) #9
Joao da Silva
6 years, 3 months ago (2014-09-15 11:57:14 UTC) #10
On 2014/09/08 13:47:08, kaliamoorthi wrote:
> I updated the JSON text.
> 
> Please land it.

Landed as https://code.google.com/p/grit-i18n/source/detail?r=176.

This issue can be closed.

Powered by Google App Engine
This is Rietveld 408576698