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

Issue 2014793002: [Grit] Allow preprocess-only "inlining" (Closed)

Created:
4 years, 7 months ago by groby-ooo-7-16
Modified:
4 years, 7 months ago
Reviewers:
Lei Zhang, Dan Beam
CC:
chromium-reviews, Dan Beam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Grit] Allow preprocess-only "inlining" Grit inlining is occasionally more than necessary - sometimes, all that's needed is processing of <if> and <include> directives, without following every html reference. (One specific case: When the HTML refers to relative resources. Grit tries to treat them as files, since no protocol is specified) This change adds support for the "preprocess" attribute, which disables link inlining. R=thestig@chromium.org BUG=none Committed: https://crrev.com/72ed2672c529ba14ff68b3f69c2c211b058bfee4 Cr-Commit-Position: refs/heads/master@{#396119}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Added comment. #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : Review fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -25 lines) Patch
M tools/grit/grit/format/html_inline.py View 7 chunks +29 lines, -23 lines 0 comments Download
M tools/grit/grit/gather/chrome_html.py View 1 2 3 3 chunks +6 lines, -2 lines 0 comments Download
M tools/grit/grit/node/include.py View 1 chunk +1 line, -0 lines 0 comments Download
M tools/grit/grit/node/structure.py View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
groby-ooo-7-16
4 years, 7 months ago (2016-05-26 01:53:18 UTC) #1
groby-ooo-7-16
cc'd dbeam, since md-settings relevant
4 years, 7 months ago (2016-05-26 01:54:52 UTC) #3
Dan Beam
lgtm https://codereview.chromium.org/2014793002/diff/1/tools/grit/grit/gather/chrome_html.py File tools/grit/grit/gather/chrome_html.py (right): https://codereview.chromium.org/2014793002/diff/1/tools/grit/grit/gather/chrome_html.py#newcode299 tools/grit/grit/gather/chrome_html.py:299: attrs['preprocess'] == 'true') nit: indent off https://codereview.chromium.org/2014793002/diff/1/tools/grit/grit/node/include.py File ...
4 years, 7 months ago (2016-05-26 02:00:47 UTC) #5
Lei Zhang
https://codereview.chromium.org/2014793002/diff/1/tools/grit/grit/gather/chrome_html.py File tools/grit/grit/gather/chrome_html.py (right): https://codereview.chromium.org/2014793002/diff/1/tools/grit/grit/gather/chrome_html.py#newcode302 tools/grit/grit/gather/chrome_html.py:302: self.preprocess_only_) Check this first since it's less processing? https://codereview.chromium.org/2014793002/diff/1/tools/grit/grit/node/structure.py ...
4 years, 7 months ago (2016-05-26 02:08:16 UTC) #6
groby-ooo-7-16
https://codereview.chromium.org/2014793002/diff/1/tools/grit/grit/node/include.py File tools/grit/grit/node/include.py (right): https://codereview.chromium.org/2014793002/diff/1/tools/grit/grit/node/include.py#newcode38 tools/grit/grit/node/include.py:38: preprocess_only=False, On 2016/05/26 02:00:47, Dan Beam wrote: > isn't ...
4 years, 7 months ago (2016-05-26 02:10:17 UTC) #7
Lei Zhang
https://codereview.chromium.org/2014793002/diff/1/tools/grit/grit/node/structure.py File tools/grit/grit/node/structure.py (right): https://codereview.chromium.org/2014793002/diff/1/tools/grit/grit/node/structure.py#newcode141 tools/grit/grit/node/structure.py:141: 'preprocess': 'false', On 2016/05/26 02:10:17, groby wrote: > On ...
4 years, 7 months ago (2016-05-26 02:20:36 UTC) #8
groby-ooo-7-16
https://codereview.chromium.org/2014793002/diff/1/tools/grit/grit/node/structure.py File tools/grit/grit/node/structure.py (right): https://codereview.chromium.org/2014793002/diff/1/tools/grit/grit/node/structure.py#newcode141 tools/grit/grit/node/structure.py:141: 'preprocess': 'false', On 2016/05/26 02:20:36, Lei Zhang wrote: > ...
4 years, 7 months ago (2016-05-26 02:26:35 UTC) #9
Lei Zhang
https://codereview.chromium.org/2014793002/diff/20001/tools/grit/grit/gather/chrome_html.py File tools/grit/grit/gather/chrome_html.py (right): https://codereview.chromium.org/2014793002/diff/20001/tools/grit/grit/gather/chrome_html.py#newcode299 tools/grit/grit/gather/chrome_html.py:299: attrs['preprocess'] == 'true') indentation still
4 years, 7 months ago (2016-05-26 02:32:28 UTC) #10
groby-ooo-7-16
https://codereview.chromium.org/2014793002/diff/1/tools/grit/grit/gather/chrome_html.py File tools/grit/grit/gather/chrome_html.py (right): https://codereview.chromium.org/2014793002/diff/1/tools/grit/grit/gather/chrome_html.py#newcode302 tools/grit/grit/gather/chrome_html.py:302: self.preprocess_only_) On 2016/05/26 02:08:15, Lei Zhang wrote: > Check ...
4 years, 7 months ago (2016-05-26 02:45:21 UTC) #11
Lei Zhang
lgtm
4 years, 7 months ago (2016-05-26 02:49:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2014793002/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2014793002/50001
4 years, 7 months ago (2016-05-26 02:50:22 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/234223)
4 years, 7 months ago (2016-05-26 03:44:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2014793002/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2014793002/50001
4 years, 7 months ago (2016-05-26 03:59:17 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:50001)
4 years, 7 months ago (2016-05-26 04:27:11 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 04:30:02 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/72ed2672c529ba14ff68b3f69c2c211b058bfee4
Cr-Commit-Position: refs/heads/master@{#396119}

Powered by Google App Engine
This is Rietveld 408576698