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

Issue 865563002: Add a Policy template writer that generates Android resources which can be exposed through Android'… (Closed)

Created:
5 years, 11 months ago by knn
Modified:
5 years, 9 months ago
Reviewers:
Bernhard Bauer, Nico
CC:
grit-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/grit-i18n.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add a Policy template writer that generates Android resources which can be exposed through Android's App Restriction Schema. BUG=450548

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed Comments #

Patch Set 3 : Rebased + Changes to Docwriter + Unittests #

Total comments: 10

Patch Set 4 : Addressed Some Comments #

Total comments: 8

Patch Set 5 : Nits #

Total comments: 3

Patch Set 6 : Remove extra whitespace #

Patch Set 7 : Rebase on r186 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -51 lines) Patch
M grit/format/policy_templates/PRESUBMIT.py View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A grit/format/policy_templates/writers/android_policy_writer.py View 1 2 3 1 chunk +100 lines, -0 lines 0 comments Download
A grit/format/policy_templates/writers/android_policy_writer_unittest.py View 1 2 3 4 5 1 chunk +82 lines, -0 lines 0 comments Download
M grit/format/policy_templates/writers/doc_writer.py View 1 2 3 4 5 6 12 chunks +63 lines, -29 lines 0 comments Download
M grit/format/policy_templates/writers/doc_writer_unittest.py View 1 2 3 4 5 6 17 chunks +82 lines, -20 lines 0 comments Download
M grit/test_suite_all.py View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M grit/tool/build.py View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (2 generated)
knn
5 years, 11 months ago (2015-01-21 11:23:30 UTC) #2
Bernhard Bauer
Very nice! https://codereview.chromium.org/865563002/diff/1/grit/format/policy_templates/writers/android_policy_writer.py File grit/format/policy_templates/writers/android_policy_writer.py (right): https://codereview.chromium.org/865563002/diff/1/grit/format/policy_templates/writers/android_policy_writer.py#newcode8 grit/format/policy_templates/writers/android_policy_writer.py:8: import xml.sax.saxutils as xml_escape Is there an ...
5 years, 11 months ago (2015-01-21 13:55:55 UTC) #3
knn
https://codereview.chromium.org/865563002/diff/1/grit/format/policy_templates/writers/android_policy_writer.py File grit/format/policy_templates/writers/android_policy_writer.py (right): https://codereview.chromium.org/865563002/diff/1/grit/format/policy_templates/writers/android_policy_writer.py#newcode8 grit/format/policy_templates/writers/android_policy_writer.py:8: import xml.sax.saxutils as xml_escape On 2015/01/21 13:55:55, Bernhard Bauer ...
5 years, 11 months ago (2015-01-21 14:38:02 UTC) #4
Bernhard Bauer
lgtm
5 years, 11 months ago (2015-01-21 15:48:11 UTC) #5
knn
+Nico for owners review.
5 years, 11 months ago (2015-01-21 16:55:58 UTC) #7
Bernhard Bauer
Nico, friendly ping?
5 years, 10 months ago (2015-02-09 13:02:45 UTC) #8
Nico
Whoops, sorry, did't see this the first time round. Please ping sooner :-( Anyways, is ...
5 years, 10 months ago (2015-02-09 15:28:36 UTC) #9
knn
On 2015/02/09 15:28:36, Nico wrote: > Whoops, sorry, did't see this the first time round. ...
5 years, 10 months ago (2015-02-24 20:53:33 UTC) #10
Nico
lgtm if bauerb likes the tests. A bunch of style notes below. https://codereview.chromium.org/865563002/diff/40001/grit/format/policy_templates/writers/android_policy_writer.py File grit/format/policy_templates/writers/android_policy_writer.py ...
5 years, 9 months ago (2015-03-02 19:02:06 UTC) #11
knn
Hi Nico, Some of the changes you suggested encompasses other files in the directory. For ...
5 years, 9 months ago (2015-03-02 19:54:35 UTC) #12
Bernhard Bauer
Just some formatting nits for the unit tests: https://codereview.chromium.org/865563002/diff/60001/grit/format/policy_templates/writers/android_policy_writer_unittest.py File grit/format/policy_templates/writers/android_policy_writer_unittest.py (right): https://codereview.chromium.org/865563002/diff/60001/grit/format/policy_templates/writers/android_policy_writer_unittest.py#newcode29 grit/format/policy_templates/writers/android_policy_writer_unittest.py:29: 'desc': ...
5 years, 9 months ago (2015-03-03 10:52:15 UTC) #13
knn
Done! https://codereview.chromium.org/865563002/diff/60001/grit/format/policy_templates/writers/android_policy_writer_unittest.py File grit/format/policy_templates/writers/android_policy_writer_unittest.py (right): https://codereview.chromium.org/865563002/diff/60001/grit/format/policy_templates/writers/android_policy_writer_unittest.py#newcode29 grit/format/policy_templates/writers/android_policy_writer_unittest.py:29: 'desc': 'This is a long policy caption. More ...
5 years, 9 months ago (2015-03-03 16:09:52 UTC) #14
Bernhard Bauer
LGTM!
5 years, 9 months ago (2015-03-03 16:23:58 UTC) #15
Nico
I tried landing this, and when I ran `python grit.py unit` before committing, the new ...
5 years, 9 months ago (2015-03-04 18:50:11 UTC) #16
Nico
https://codereview.chromium.org/865563002/diff/80001/grit/format/policy_templates/writers/doc_writer_unittest.py File grit/format/policy_templates/writers/doc_writer_unittest.py (right): https://codereview.chromium.org/865563002/diff/80001/grit/format/policy_templates/writers/doc_writer_unittest.py#newcode856 grit/format/policy_templates/writers/doc_writer_unittest.py:856: '<dd>PolicyDesc</dd>' Changing this line to '<dd><p>PolicyDesc</dd>' makes the test ...
5 years, 9 months ago (2015-03-04 19:15:23 UTC) #17
knn
On 2015/03/04 19:15:23, Nico wrote: > https://codereview.chromium.org/865563002/diff/80001/grit/format/policy_templates/writers/doc_writer_unittest.py > File grit/format/policy_templates/writers/doc_writer_unittest.py (right): > > https://codereview.chromium.org/865563002/diff/80001/grit/format/policy_templates/writers/doc_writer_unittest.py#newcode856 > ...
5 years, 9 months ago (2015-03-04 19:25:51 UTC) #18
knn
None of tests have <p> around PolicyDesc right? Shouldn't it fail in all of them? ...
5 years, 9 months ago (2015-03-04 19:45:10 UTC) #19
Nico
https://codereview.chromium.org/865563002/diff/80001/grit/format/policy_templates/writers/doc_writer_unittest.py File grit/format/policy_templates/writers/doc_writer_unittest.py (right): https://codereview.chromium.org/865563002/diff/80001/grit/format/policy_templates/writers/doc_writer_unittest.py#newcode856 grit/format/policy_templates/writers/doc_writer_unittest.py:856: '<dd>PolicyDesc</dd>' On 2015/03/04 19:45:09, knn wrote: > On 2015/03/04 ...
5 years, 9 months ago (2015-03-04 19:56:07 UTC) #20
knn
On 2015/03/04 19:56:07, Nico wrote: > https://codereview.chromium.org/865563002/diff/80001/grit/format/policy_templates/writers/doc_writer_unittest.py > File grit/format/policy_templates/writers/doc_writer_unittest.py (right): > > https://codereview.chromium.org/865563002/diff/80001/grit/format/policy_templates/writers/doc_writer_unittest.py#newcode856 > ...
5 years, 9 months ago (2015-03-04 20:51:50 UTC) #21
Nico
ooooh i see, you're editing this in grit-in-your-chromium checkout, not in grit trunk?
5 years, 9 months ago (2015-03-04 20:58:04 UTC) #22
knn
On 2015/03/04 20:58:04, Nico wrote: > ooooh i see, you're editing this in grit-in-your-chromium checkout, ...
5 years, 9 months ago (2015-03-04 21:54:23 UTC) #23
Nico
5 years, 9 months ago (2015-03-04 22:14:16 UTC) #24
landed in grit r187

Powered by Google App Engine
This is Rietveld 408576698