-
lukasza authored
Before this CL, when --all switch was used, then |filenames| 1) wouldn't include any header filenames (which should get rewritten) 2) would include generated files (which shouldn't get rewritten) This would lead to incorrect filtering of edits/files that are passed to _ApplyEdits function. The new filtering behavior helps to ensure that we apply edits to header files that are only included from generated files. Doing this requires 1) running the tool on generated files (this is what --all switch accomplishes even before this CL) and 2) ensuring that edits are applied to the right files (this is what this CL does). Examples of headers that are only included from generated files can be found in https://crbug.com/643779#c11 BUG=643779 Review-Url: https://codereview.chromium.org/2583623002 Cr-Commit-Position: refs/heads/master@{#439136}
d857418d