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

Issue 1194063002: grit: Add fallback_to_default_layout attribute to <output> (Closed)

Created:
5 years, 6 months ago by tdanderson
Modified:
5 years, 6 months ago
Reviewers:
flackr
CC:
grit-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/grit-i18n.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

grit: Add fallback_to_default_layout attribute to <output> Introduce the fallback_to_default_layout attribute in the grit <output> tag. When this attribute is set to "false", <structure> nodes of type chrome_scaled_image will not fall back to searching the default context if the resource is not present in the context specified in the context attribute. No resource will be loaded into the output file for such structures. BUG=503635 TEST=ChromeScaledImageUnittest.testNoFallbackToDefaultLayout

Patch Set 1 #

Total comments: 6

Patch Set 2 : proof of concept test #

Total comments: 5

Patch Set 3 : for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -13 lines) Patch
M grit/format/rc.py View 1 1 chunk +5 lines, -1 line 0 comments Download
M grit/gather/chrome_scaled_image.py View 1 2 2 chunks +19 lines, -2 lines 0 comments Download
M grit/gather/chrome_scaled_image_unittest.py View 1 2 chunks +22 lines, -3 lines 0 comments Download
M grit/node/include.py View 1 1 chunk +5 lines, -1 line 0 comments Download
M grit/node/io.py View 1 2 chunks +4 lines, -0 lines 0 comments Download
M grit/node/misc.py View 3 chunks +10 lines, -3 lines 0 comments Download
M grit/node/structure.py View 1 1 chunk +4 lines, -1 line 0 comments Download
M grit/tool/build.py View 1 chunk +1 line, -0 lines 0 comments Download
M grit_info.py View 1 2 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
tdanderson
Rob, what do you think of this approach? See https://codereview.chromium.org/1197813002 for a WIP CL which ...
5 years, 6 months ago (2015-06-19 18:24:35 UTC) #2
flackr
Please add tests for both the set of input files referenced and the pak file ...
5 years, 6 months ago (2015-06-19 19:42:13 UTC) #3
tdanderson
Rob, please take a look at the test added in patch set 2. Note that ...
5 years, 6 months ago (2015-06-22 23:33:20 UTC) #4
flackr
https://codereview.chromium.org/1194063002/diff/20001/grit/gather/chrome_scaled_image.py File grit/gather/chrome_scaled_image.py (right): https://codereview.chromium.org/1194063002/diff/20001/grit/gather/chrome_scaled_image.py#newcode103 grit/gather/chrome_scaled_image.py:103: try_default_layout = self.grd_node.GetRoot().fallback_to_default_layout Hmm, can't we do the same ...
5 years, 6 months ago (2015-06-23 13:33:33 UTC) #5
tdanderson
https://codereview.chromium.org/1194063002/diff/20001/grit/gather/chrome_scaled_image.py File grit/gather/chrome_scaled_image.py (right): https://codereview.chromium.org/1194063002/diff/20001/grit/gather/chrome_scaled_image.py#newcode103 grit/gather/chrome_scaled_image.py:103: try_default_layout = self.grd_node.GetRoot().fallback_to_default_layout On 2015/06/23 13:33:33, flackr wrote: > ...
5 years, 6 months ago (2015-06-23 14:22:55 UTC) #6
tdanderson
Rob, patch set 3 should be good to land.
5 years, 6 months ago (2015-06-23 16:26:23 UTC) #7
flackr
5 years, 6 months ago (2015-06-23 16:56:41 UTC) #8
LGTM, committed revision 190.

Powered by Google App Engine
This is Rietveld 408576698