ckerr

#56170: chore: remove gritsettings_resource_ids.patch

Merged
Created: Dec 3, 2026, 3:05:46 PM
Merged: Dec 4, 2026, 3:34:45 PM
10 comments
Target: main

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 .pak ID 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

43-x-y
In-flight
PR Number
#56218
Waiting to be merged
44-x-y
In-flight
PR Number
#56217
Waiting to be merged
45-x-y
In-flight
PR Number
#56216
Waiting to be merged
46-x-y
Merged
PR Number
#56213
Merged At
Dec 4, 2026, 11:43:10 PM
Released In
Not yet
Release Date
Not yet

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