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

Issue 3116027: Add Mac output for policy template generator (Closed)

Created:
10 years, 4 months ago by gfeher
Modified:
9 years, 7 months ago
Reviewers:
Jói
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr., Pam (message me for reviews), markusheintz_
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Add Mac output for policy template generator Writer for plist manifest and string table files, and custom strings for the Mac templates. BUG=49316 TEST=plist_writer_unittest.*, plist_strings_writer_unittest.* (grit) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57307

Patch Set 1 : clean up hacks #

Patch Set 2 : rebase against grit 'if vs output' support #

Patch Set 3 : use Mark's recommendations for gyp #

Patch Set 4 : rebase against CL3191021 and remove gyp magic for now #

Patch Set 5 : cleanups #

Patch Set 6 : nits #

Total comments: 12

Patch Set 7 : address reviewer comments #

Patch Set 8 : address reviewer comments #

Total comments: 1

Patch Set 9 : final nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1025 lines, -128 lines) Patch
M chrome/app/policy/policy_templates.grd View 1 2 3 4 5 6 7 8 5 chunks +111 lines, -5 lines 0 comments Download
M chrome/app/policy/policy_templates.json View 1 2 3 2 chunks +121 lines, -113 lines 0 comments Download
M chrome/chrome.gyp View 3 chunks +8 lines, -1 line 0 comments Download
M tools/grit/grit/format/policy_templates/template_formatter.py View 1 2 3 7 4 chunks +12 lines, -5 lines 0 comments Download
M tools/grit/grit/format/policy_templates/writers/adm_writer.py View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
A tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py View 1 2 3 4 5 6 1 chunk +93 lines, -0 lines 0 comments Download
A tools/grit/grit/format/policy_templates/writers/plist_strings_writer_unittest.py View 1 chunk +190 lines, -0 lines 0 comments Download
A tools/grit/grit/format/policy_templates/writers/plist_writer.py View 1 2 3 4 5 6 1 chunk +148 lines, -0 lines 0 comments Download
A tools/grit/grit/format/policy_templates/writers/plist_writer_unittest.py View 1 chunk +255 lines, -0 lines 0 comments Download
A tools/grit/grit/format/policy_templates/writers/writer_unittest_common.py View 7 8 1 chunk +74 lines, -0 lines 0 comments Download
M tools/grit/grit/node/misc.py View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/grit/grit/test_suite_all.py View 2 chunks +5 lines, -0 lines 0 comments Download
M tools/grit/grit/tool/build.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
gfeher
Hi, please review this. Would you like me to ask someone else to check the ...
10 years, 4 months ago (2010-08-24 15:05:56 UTC) #1
Jói
Groovy. Please add unit tests for the two new writers. Cheers, Jói http://codereview.chromium.org/3116027/diff/16019/4002 File chrome/app/policy/policy_templates.grd ...
10 years, 4 months ago (2010-08-24 15:20:23 UTC) #2
gfeher
I tried to fix everything but I guess its not perfect yet. Please take a ...
10 years, 3 months ago (2010-08-24 19:03:32 UTC) #3
Jói
10 years, 3 months ago (2010-08-24 19:28:35 UTC) #4
LGTM++

Groovy!  No need for me to take another look, just the one nit about two +80
character lines.  (I'm OK with the +80 lines that are caused by inlining of XML
in your unit test files)

http://codereview.chromium.org/3116027/diff/42001/1029
File tools/grit/grit/format/policy_templates/writers/writer_unittest_common.py
(right):

http://codereview.chromium.org/3116027/diff/42001/1029#newcode57
tools/grit/grit/format/policy_templates/writers/writer_unittest_common.py:57:
def CompareResult(self, grd, env_lang, env_defs, out_type, out_lang,
expected_output):
+80 (next line as well)

Powered by Google App Engine
This is Rietveld 408576698