|
|
Created:
5 years, 11 months ago by Olivier Modified:
5 years, 10 months ago Reviewers:
Nico, sdefresne, lliabra CC:
chromium-reviews Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionChange grit whitelist to a string parameter
This CL changes the grit_whitelist parameter to be a string instead of a
part of grit_defines.
This allow user to override the parameter with another file.
The goal of this is to allow creating bundles with their own whitelists.
At the moment, if you want to create a small executable (i.e. an ios extension)
that only uses 3 strings, you are required to include all the strings
whitelisted by the main chrome bundle.
By allowing to override the whitelist argument (instead of only appending the
argument array, it will allow to specify a specific whitelist for a specific
target.
BUG=456837
Committed: https://crrev.com/2310fc2b85b31504de87ba22d9d14fc406ed3147
Cr-Commit-Position: refs/heads/master@{#315324}
Patch Set 1 #
Created: 5 years, 11 months ago
Messages
Total messages: 19 (5 generated)
olivierrobin@chromium.org changed reviewers: + lliabra@chromium.org, sdefresne@chromium.org
Did you forget to send email asking for review? LGTM
The CQ bit was checked by olivierrobin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/862043002/1
The CQ bit was unchecked by olivierrobin@chromium.org
+ thakis for owner
olivierrobin@chromium.org changed reviewers: + thakis@chromium.org
Neither cl description nor bug link (not present) explain why one would want to override this (there's even a "TODO: remove this whitelist" in the code)
On 2015/02/09 15:13:50, Nico wrote: > Neither cl description nor bug link (not present) explain why one would want to > override this (there's even a "TODO: remove this whitelist" in the code) The goal of the CL is to allow creating bundles with their own whitelists. At the moment, if you want to create a small executable (i.e. an ios extension) that only uses 3 strings, you are required to include all the strings whitelisted by the main chrome bundle. By allowing to override the whitelist argument (instead of only appending the argument array, it will allow to specify a specific whitelist for a specific target. The TODO: remove this whitelist was present before the CL
On 2015/02/09 15:20:47, Olivier Robin wrote: > On 2015/02/09 15:13:50, Nico wrote: > > Neither cl description nor bug link (not present) explain why one would want > to > > override this (there's even a "TODO: remove this whitelist" in the code) > > The goal of the CL is to allow creating bundles with their own whitelists. > > At the moment, if you want to create a small executable (i.e. an ios extension) > that only uses 3 strings, you are required to include all the strings > whitelisted by the main chrome bundle. > By allowing to override the whitelist argument (instead of only appending the > argument array, it will allow to specify a specific whitelist for a specific > target. Right, but things like this should be in cl descriptions and / or tracking bugs. It sounds like the problem is that build/common.gypi adds `'-w', '<(DEPTH)/build/ios/grit_whitelist.txt',` unconditionally for all targets. Maybe it should stop doing that? Things in build/common.gypi are for global defaults that are correct for every target; sounds like that's no longer true for the whitelist?
On 2015/02/09 15:44:00, Nico wrote: > On 2015/02/09 15:20:47, Olivier Robin wrote: > > On 2015/02/09 15:13:50, Nico wrote: > > > Neither cl description nor bug link (not present) explain why one would want > > to > > > override this (there's even a "TODO: remove this whitelist" in the code) > > > > The goal of the CL is to allow creating bundles with their own whitelists. > > > > At the moment, if you want to create a small executable (i.e. an ios > extension) > > that only uses 3 strings, you are required to include all the strings > > whitelisted by the main chrome bundle. > > By allowing to override the whitelist argument (instead of only appending the > > argument array, it will allow to specify a specific whitelist for a specific > > target. > > Right, but things like this should be in cl descriptions and / or tracking bugs. > > It sounds like the problem is that build/common.gypi adds `'-w', > '<(DEPTH)/build/ios/grit_whitelist.txt',` unconditionally for all targets. Maybe > it should stop doing that? Things in build/common.gypi are for global defaults > that are correct for every target; sounds like that's no longer true for the > whitelist? Added the bug. If we consider '<(DEPTH)/build/ios/grit_whitelist.txt' as a global default value and not an unconditional value, it still make sense to define it in common.gypi as it must be included in all bundles (application and tests) except if it is specifically overridden. That was also the case of grit_defines which was overridden in ios_chrome_resources.gyp (but adding a whitelist instead of replacing)
On 2015/02/09 16:07:04, Olivier Robin wrote: > On 2015/02/09 15:44:00, Nico wrote: > > On 2015/02/09 15:20:47, Olivier Robin wrote: > > > On 2015/02/09 15:13:50, Nico wrote: > > > > Neither cl description nor bug link (not present) explain why one would > want > > > to > > > > override this (there's even a "TODO: remove this whitelist" in the code) > > > > > > The goal of the CL is to allow creating bundles with their own whitelists. > > > > > > At the moment, if you want to create a small executable (i.e. an ios > > extension) > > > that only uses 3 strings, you are required to include all the strings > > > whitelisted by the main chrome bundle. > > > By allowing to override the whitelist argument (instead of only appending > the > > > argument array, it will allow to specify a specific whitelist for a specific > > > target. > > > > Right, but things like this should be in cl descriptions and / or tracking > bugs. > > > > It sounds like the problem is that build/common.gypi adds `'-w', > > '<(DEPTH)/build/ios/grit_whitelist.txt',` unconditionally for all targets. > Maybe > > it should stop doing that? Things in build/common.gypi are for global defaults > > that are correct for every target; sounds like that's no longer true for the > > whitelist? > > Added the bug. That's a private bug. Will the extension you mention eventually be in the public repo? We try to not add stuff for internal-only projects to public code (from any company). > If we consider '<(DEPTH)/build/ios/grit_whitelist.txt' as a global default > value and not an unconditional value, it still make sense to define it in > common.gypi as it must be included in all bundles (application and tests) except > if it is specifically overridden. Ok, that makes sense. lgtm (independent of the question above as this is a fairly small change) > That was also the case of grit_defines which was overridden in > ios_chrome_resources.gyp (but adding a whitelist instead of replacing)
On 2015/02/09 16:43:59, Nico wrote: > On 2015/02/09 16:07:04, Olivier Robin wrote: > > On 2015/02/09 15:44:00, Nico wrote: > > > On 2015/02/09 15:20:47, Olivier Robin wrote: > > > > On 2015/02/09 15:13:50, Nico wrote: > > > > > Neither cl description nor bug link (not present) explain why one would > > want > > > > to > > > > > override this (there's even a "TODO: remove this whitelist" in the code) > > > > > > > > The goal of the CL is to allow creating bundles with their own whitelists. > > > > > > > > At the moment, if you want to create a small executable (i.e. an ios > > > extension) > > > > that only uses 3 strings, you are required to include all the strings > > > > whitelisted by the main chrome bundle. > > > > By allowing to override the whitelist argument (instead of only appending > > the > > > > argument array, it will allow to specify a specific whitelist for a > specific > > > > target. > > > > > > Right, but things like this should be in cl descriptions and / or tracking > > bugs. > > > > > > It sounds like the problem is that build/common.gypi adds `'-w', > > > '<(DEPTH)/build/ios/grit_whitelist.txt',` unconditionally for all targets. > > Maybe > > > it should stop doing that? Things in build/common.gypi are for global > defaults > > > that are correct for every target; sounds like that's no longer true for the > > > whitelist? > > > > Added the bug. > > That's a private bug. Will the extension you mention eventually be in the public > repo? We try to not add stuff for internal-only projects to public code (from > any company). > > > If we consider '<(DEPTH)/build/ios/grit_whitelist.txt' as a global default > > value and not an unconditional value, it still make sense to define it in > > common.gypi as it must be included in all bundles (application and tests) > except > > if it is specifically overridden. > > Ok, that makes sense. lgtm (independent of the question above as this is a > fairly small change) > > > That was also the case of grit_defines which was overridden in > > ios_chrome_resources.gyp (but adding a whitelist instead of replacing) Well, that's part of the problem. The extension will not be in the public repo (at least not in short term), but this change was obviously upstream. That is why the details were rather small in this CL. Thanks for the review.
The CQ bit was checked by olivierrobin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/862043002/1
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/2310fc2b85b31504de87ba22d9d14fc406ed3147 Cr-Commit-Position: refs/heads/master@{#315324} |