Get the version of crashpad that we're going to use.
libcc/src/third_party/crashpad/README.chromium
will have a line Revision:
with a checksumgit clone https://chromium.googlesource.com/crashpad/crashpad
git checkout <revision checksum>
git remote add electron https://github.com/electron/crashpad
git checkout -b electron-crashpad-vA.B.C.D
A.B.C.D
is the Chromium version found in libcc/VERSION
and will be something like 62.0.3202.94
Make a checklist of the Electron patches that need to be applied
with git log --oneline
For each patch:
electron-crashpad-vA.B.C.D
, cherry-pick the patch's checksumgit cherry-pick <checksum>
git push electron electron-crashpad-vA.B.C.D
Update Electron to build the new crashpad:
cd vendor/crashpad
git fetch
git checkout electron-crashpad-v62.0.3202.94
Regenerate Ninja files against both targets
script/update.py
script/build.py -c D --target=crashpad_client
script/build.py -c D --target=crashpad_handler
Push changes to submodule reference
git add vendor/crashpad
git push origin upgrade-to-chromium-62