#50763: refactor: remove use of deprecated class base::MemoryPressureListener
Merged
Description of Change
A pretty straightforward change. base::MemoryPressureListener was marked as deprecated in https://chromium-review.googlesource.com/c/chromium/src/+/7576817, so use non-deprecated API instead:
- base::MemoryPressureListener::NotifyMemoryPressure(foo);
+ base::MemoryPressureListenerRegistry::NotifyMemoryPressure(foo);Checklist
- PR description included
- I have built and tested this PR
-
npm testpasses - PR release notes describe the change in a way relevant to app developers, and are capitalized, punctuated, and past tense.
Release Notes
Notes: none.
Backports
42-x-y
MergedPR Number
#50797Merged At
Apr 7, 2026, 11:14:03 PM
Released In
v42.0.0-beta.2Release Date
Apr 10, 2026, 12:27:42 PM
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