DevTools: Autofix out-of-date grdp/grd file paths in presubmit
This patch adds the functionality to autofix grdp/grd file paths that are out of date. * <part> file entries that reference non-existent grdp files in devtools_ui_strings.grd are removed. * Grdp files with the wrong names are renamed (format should be <folder_name>_strings.grdp) along with the corresponding part file entries in devtools_ui_strings.grd. * If more than one grdp files are under a directory, an error is issued to ask the user to consolidate these grdp files. This patch will eliminate the need to manually fix grdp/grd inconsistensies (e.g. https://crrev.com/c/1637591) after unexpected changes (e.g. audits2 renamed to audits: https://crrev.com/c/1614691). Bug: 941561 Change-Id: Ie413fe070a2f5b4319a12ce07653ec1a79912215 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1703044Reviewed-by:Yang Guo <yangguo@chromium.org> Commit-Queue: Mandy Chen <mandy.chen@microsoft.com> Cr-Commit-Position: refs/heads/master@{#698917}
Showing
Please register or sign in to comment