ckerr

#50763: refactor: remove use of deprecated class base::MemoryPressureListener

Merged
Created: Apr 6, 2026, 7:21:37 PM
Merged: Apr 7, 2026, 8:11:03 PM
2 comments
Target: main

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

Release Notes

Notes: none.

Backports

42-x-y
Merged
PR Number
#50797
Merged At
Apr 7, 2026, 11:14:03 PM
Released In
v42.0.0-beta.2
Release 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