Index: PRESUBMIT.py |
diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
index e13c9a05a4611940ff7f0a9578fe128847bd8a24..e2d0dd50d092b8699e208273f40864e6061a4d0a 100755 |
--- a/PRESUBMIT.py |
+++ b/PRESUBMIT.py |
@@ -623,7 +623,7 @@ def _CheckOrphanHeaders(input_api, output_api): |
sys.path = original_sys_path |
for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile): |
- if f.LocalPath().endswith('.h'): |
+ if f.LocalPath().endswith('.h') and f.Action() == 'A': |
file_path = os.path.abspath(f.LocalPath()) |
root_dir = os.getcwd() |
gn_file_path = GetBuildGnPathFromFilePath(file_path, os.path.exists, |