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

Issue 631223003: Include chromium version number in policy templates (Closed)

Created:
6 years, 2 months ago by cschuet (SLOW)
Modified:
6 years, 2 months ago
CC:
grit-developer_googlegroups.com
Visibility:
Public.

Description

Add a chromium version to policy template files. BUG=108941 TEST=python test_suite_all.py

Patch Set 1 #

Total comments: 52

Patch Set 2 : #

Total comments: 14

Patch Set 3 : #

Total comments: 16

Patch Set 4 : #

Total comments: 7

Patch Set 5 : #

Patch Set 6 : #

Total comments: 10

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -6 lines) Patch
M grit/format/policy_templates/writer_configuration.py View 1 1 chunk +2 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/adm_writer.py View 1 2 chunks +6 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/adm_writer_unittest.py View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/adml_writer.py View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/adml_writer_unittest.py View 1 1 chunk +14 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/admx_writer.py View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/admx_writer_unittest.py View 1 2 chunks +34 lines, -1 line 0 comments Download
M grit/format/policy_templates/writers/doc_writer.py View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/doc_writer_unittest.py View 1 2 chunks +26 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/ios_plist_writer.py View 1 1 chunk +3 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/ios_plist_writer_unittest.py View 1 2 3 2 chunks +18 lines, -1 line 0 comments Download
M grit/format/policy_templates/writers/json_writer.py View 1 2 chunks +6 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/json_writer_unittest.py View 1 2 2 chunks +23 lines, -1 line 0 comments Download
M grit/format/policy_templates/writers/plist_strings_writer.py View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/plist_strings_writer_unittest.py View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/plist_writer.py View 1 1 chunk +3 lines, -1 line 0 comments Download
M grit/format/policy_templates/writers/plist_writer_unittest.py View 1 2 3 4 5 6 2 chunks +59 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/reg_writer.py View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download
M grit/format/policy_templates/writers/reg_writer_unittest.py View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/template_writer.py View 1 2 3 4 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (3 generated)
pastarmovj
A few comments ;) It's good as a whole just style stuff. https://codereview.chromium.org/631223003/diff/1/grit/format/policy_templates/writer_configuration.py File grit/format/policy_templates/writer_configuration.py ...
6 years, 2 months ago (2014-10-07 14:54:36 UTC) #2
cschuet1
addressed all you concerns https://codereview.chromium.org/631223003/diff/1/grit/format/policy_templates/writer_configuration.py File grit/format/policy_templates/writer_configuration.py (right): https://codereview.chromium.org/631223003/diff/1/grit/format/policy_templates/writer_configuration.py#newcode55 grit/format/policy_templates/writer_configuration.py:55: if('version' in defines): On 2014/10/07 ...
6 years, 2 months ago (2014-10-07 15:42:47 UTC) #4
pastarmovj
almost there :) https://codereview.chromium.org/631223003/diff/20001/grit/format/policy_templates/writers/adm_writer_unittest.py File grit/format/policy_templates/writers/adm_writer_unittest.py (right): https://codereview.chromium.org/631223003/diff/20001/grit/format/policy_templates/writers/adm_writer_unittest.py#newcode94 grit/format/policy_templates/writers/adm_writer_unittest.py:94: output = self.GetOutput(grd, 'fr', {'_chromium': '1', ...
6 years, 2 months ago (2014-10-07 15:47:17 UTC) #5
cschuet1
try again :) https://codereview.chromium.org/631223003/diff/20001/grit/format/policy_templates/writers/adm_writer_unittest.py File grit/format/policy_templates/writers/adm_writer_unittest.py (right): https://codereview.chromium.org/631223003/diff/20001/grit/format/policy_templates/writers/adm_writer_unittest.py#newcode94 grit/format/policy_templates/writers/adm_writer_unittest.py:94: output = self.GetOutput(grd, 'fr', {'_chromium': '1', ...
6 years, 2 months ago (2014-10-07 16:00:24 UTC) #6
pastarmovj
Hey Joao do you mind having a look too before we land this.
6 years, 2 months ago (2014-10-10 07:50:39 UTC) #8
Joao da Silva
https://codereview.chromium.org/631223003/diff/40001/grit/format/policy_templates/writers/ios_plist_writer_unittest.py File grit/format/policy_templates/writers/ios_plist_writer_unittest.py (right): https://codereview.chromium.org/631223003/diff/40001/grit/format/policy_templates/writers/ios_plist_writer_unittest.py#newcode58 grit/format/policy_templates/writers/ios_plist_writer_unittest.py:58: defines=None): This doesn't seem to be used? https://codereview.chromium.org/631223003/diff/40001/grit/format/policy_templates/writers/plist_strings_writer.py File ...
6 years, 2 months ago (2014-10-13 10:30:58 UTC) #9
cschuet (SLOW)
addressed all issues https://codereview.chromium.org/631223003/diff/40001/grit/format/policy_templates/writers/ios_plist_writer_unittest.py File grit/format/policy_templates/writers/ios_plist_writer_unittest.py (right): https://codereview.chromium.org/631223003/diff/40001/grit/format/policy_templates/writers/ios_plist_writer_unittest.py#newcode58 grit/format/policy_templates/writers/ios_plist_writer_unittest.py:58: defines=None): On 2014/10/13 10:30:58, Joao da ...
6 years, 2 months ago (2014-10-14 18:55:21 UTC) #10
Joao da Silva
https://codereview.chromium.org/631223003/diff/140001/grit/format/policy_templates/writers/plist_writer.py File grit/format/policy_templates/writers/plist_writer.py (right): https://codereview.chromium.org/631223003/diff/140001/grit/format/policy_templates/writers/plist_writer.py#newcode125 grit/format/policy_templates/writers/plist_writer.py:125: self._GetChromiumVersionString()) Maybe you forgot to add the unittest for ...
6 years, 2 months ago (2014-10-14 19:05:21 UTC) #11
cschuet (SLOW)
fixed the reg-file writer and added the forgotten unit test https://codereview.chromium.org/631223003/diff/140001/grit/format/policy_templates/writers/plist_writer.py File grit/format/policy_templates/writers/plist_writer.py (right): https://codereview.chromium.org/631223003/diff/140001/grit/format/policy_templates/writers/plist_writer.py#newcode125 ...
6 years, 2 months ago (2014-10-14 21:04:54 UTC) #12
Joao da Silva
lgtm Seems like plist_writer_unittest.py is still missing :-)
6 years, 2 months ago (2014-10-15 10:46:46 UTC) #13
cschuet (SLOW)
finally added the missing file. thanks @Joao da Silva
6 years, 2 months ago (2014-10-15 12:42:33 UTC) #14
Joao da Silva
https://codereview.chromium.org/631223003/diff/180001/grit/format/policy_templates/writers/plist_writer_unittest.py File grit/format/policy_templates/writers/plist_writer_unittest.py (right): https://codereview.chromium.org/631223003/diff/180001/grit/format/policy_templates/writers/plist_writer_unittest.py#newcode55 grit/format/policy_templates/writers/plist_writer_unittest.py:55: def _GetExpectedOutputsWithVersion(self, product_name, bundle_id, policies, version): break lines longer ...
6 years, 2 months ago (2014-10-15 13:04:37 UTC) #15
cschuet (SLOW)
ok, thanks. I should be paying more attention to the formatting... https://codereview.chromium.org/631223003/diff/180001/grit/format/policy_templates/writers/plist_writer_unittest.py File grit/format/policy_templates/writers/plist_writer_unittest.py (right): ...
6 years, 2 months ago (2014-10-15 15:23:14 UTC) #16
Joao da Silva
lgtm! Thanks for bearing with me. Yep, formatting is important (even if not always consistent ...
6 years, 2 months ago (2014-10-15 15:28:36 UTC) #17
Joao da Silva
6 years, 2 months ago (2014-10-16 12:03:26 UTC) #18
This has been landed as https://code.google.com/p/grit-i18n/source/detail?r=178.

Christoph, you can now close this CL manually (the CQ does this for you for
chromium CLs, but not for others). The next step is to update the chromium
src/DEPS file to make it use grit revision 178 or later.

Powered by Google App Engine
This is Rietveld 408576698