Ignore IPC security check on deleted files
If a file has been deleted, don't bother adding its
OWNERS file to the set of files to be checked for correct
security lines.
BUG=622569
Review-Url: https://codereview.chromium.org/2090653003
Cr-Commit-Position: refs/heads/master@{#401625}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 6130161..134f62de 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -1447,7 +1447,7 @@
# directory would match that pattern. If a directory only contains *.mojom
# files and no *_messages*.h files, we should only nag about rules for
# *.mojom files.
- for f in input_api.change.AffectedFiles():
+ for f in input_api.change.AffectedFiles(include_deletes=False):
for pattern in file_patterns:
if input_api.fnmatch.fnmatch(
input_api.os_path.basename(f.LocalPath()), pattern):