Grit: whitelist -> allowlist
Renames occurrences in //tools/grit as well as all spots that are transitively affected by the rename. Opts grit testdata out of PRESUBMIT.py checks since we don't need UI snapshots for strings in unit tests. Bug: 1097644 Change-Id: Ieca51c233447ded9d5943ad878354cbdaa1de78d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2386392 Reviewed-by: Scott Violet <sky@chromium.org> Commit-Queue: Andrew Grieve <agrieve@chromium.org> Cr-Commit-Position: refs/heads/master@{#804288} GitOrigin-RevId: 0e8790c5fc8ab5df43ccf072bf2fdbdcb57d498c
This commit is contained in:
Родитель
a6962986c9
Коммит
709ce86e12
|
@ -64,7 +64,7 @@ _BASE_CHART = {
|
|||
'charts': {}
|
||||
}
|
||||
# Macro definitions look like (something, 123) when
|
||||
# enable_resource_whitelist_generation=true.
|
||||
# enable_resource_allowlist_generation=true.
|
||||
_RC_HEADER_RE = re.compile(r'^#define (?P<name>\w+).* (?P<id>\d+)\)?$')
|
||||
_RE_NON_LANGUAGE_PAK = re.compile(r'^assets/.*(resources|percent)\.pak$')
|
||||
_READELF_SIZES_METRICS = {
|
||||
|
|
|
@ -151,7 +151,7 @@ def main():
|
|||
open(args.tocfile, 'w').close()
|
||||
|
||||
# Instead of linking, records all inputs to a file. This is used by
|
||||
# enable_resource_whitelist_generation in order to avoid needing to
|
||||
# enable_resource_allowlist_generation in order to avoid needing to
|
||||
# link (which is slow) to build the resources whitelist.
|
||||
if collect_inputs_only:
|
||||
with open(args.sofile, 'w') as f:
|
||||
|
|
|
@ -23,7 +23,7 @@ declare_args() {
|
|||
# Currently works only on some platforms and enabled by default for release
|
||||
# builds.
|
||||
# Requires debug info, so disabled for symbol_level=0 & strip_debug_info=true.
|
||||
enable_resource_whitelist_generation =
|
||||
enable_resource_allowlist_generation =
|
||||
is_official_build &&
|
||||
# Don't enable for Android-on-Chrome OS so that they can build with
|
||||
# symbol_level=0 without this failing (crbug.com/891164).
|
||||
|
@ -33,7 +33,7 @@ declare_args() {
|
|||
# When the arg is set via args.gn, it applies to all toolchains. In order to not
|
||||
# hit the assert in grit_rule.gni, explicitly disable for host toolchains.
|
||||
if ((is_linux || is_chromeos) && target_os == "android") {
|
||||
enable_resource_whitelist_generation = false
|
||||
enable_resource_allowlist_generation = false
|
||||
}
|
||||
|
||||
# This template defines a toolchain for something that works like gcc
|
||||
|
|
Загрузка…
Ссылка в новой задаче