#56170: chore: remove gritsettings_resource_ids.patch
Merged
Addresses Tier 1A from #56164.
Removes patches/chromium/gritsettings_resource_ids.patch, which added Electron's .grd to Chromium's //tools/gritsettings/resource_ids.spec.
Instead, //electron:electron_resource_ids generates Electron's own resource_ids file at build time and passes it to grit("resources") through the template's resource_ids parameter. build/generate_resource_ids.py runs GRIT's resource ID reader and assigner over Chromium's spec, the same way //tools/gritsettings:default_resource_ids does, and places Electron's .grd files (listed in build/resource_ids.spec) just above the highest ID that Chromium reserves.
- Electron's IDs cannot overlap Chromium's. That includes image resources in
chrome_*_percent.pak, which repack's duplicate-ID check does not cover. - The build fails with a clear error if Electron's IDs would no longer fit in the 16-bit
.pakID space. If a roll changes the GRIT internals the script uses, the build also fails rather than producing wrong IDs. - The resource IDs themselves are unchanged: with the current spec, the generator produces 59620/59622, the same IDs the patch produced.
Notes: none
Backports
Semver Impact
Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron