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 <[email protected]>
Commit-Queue: Andrew Grieve <[email protected]>
Cr-Commit-Position: refs/heads/master@{#804288}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 538029ec..4289705 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -4881,8 +4881,11 @@
for f in input_api.AffectedFiles(include_deletes=True)
if f.Action() == 'D')
- affected_grds = [f for f in input_api.AffectedFiles()
- if (f.LocalPath().endswith(('.grd', '.grdp')))]
+ affected_grds = [
+ f for f in input_api.AffectedFiles()
+ if f.LocalPath().endswith(('.grd', '.grdp'))
+ ]
+ affected_grds = [f for f in affected_grds if not 'testdata' in f.LocalPath()]
if not affected_grds:
return []