a7e98e1e9fcc3fe4ceacd9ecd24ebe960cd05ff0
EventListenerInfo expects filter arg
This new optional argument has been added to this constructor, and passing `nullptr` suffices for our usecase. Chromium changes: https://chromium.googlesource.com/chromium/src/+/aa20421f6ed5fccebeffefd43aff3aa7ef00196a commit aa20421f6ed5fccebeffefd43aff3aa7ef00196a Author: Andrea Orru <andreaorru@chromium.org> Date: Wed Jan 28 08:23:46 2026 -0800 [Extensions] Refactor WebRequest listener registration via EventRouter This change introduces an alternative path for registering webRequest event listeners, guarded by the WebRequestAlternativeAddListener feature flag. This approach leverages the standard EventRouter observer pattern instead of the custom webRequestInternal API. This change adds support for passing an `options` object through the standard registration pipeline as an extra argument to `addListener`. This is in preparation to moving the custom persisted listener logic from WebRequest to EventRouter. There's no expected behavior change from this CL, since it's gated by a disabled feature flag. Bug: 474558883 Change-Id: I4c40c7cfb15bf5e4dfdff1c884ad44dee686e1a6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7419247 Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org> Reviewed-by: Rakina Zata Amni <rakina@chromium.org> Commit-Queue: Andrea Orru <andreaorru@chromium.org> Cr-Commit-Position: refs/heads/main@{#1575969}
…
…
…
…
…
…
…
…
Brave Core
Brave Core is a set of changes, APIs, and scripts used for customizing Chromium to make the Brave browser. Please also check https://github.com/brave/brave-browser
Follow @brave on Twitter for important announcements.
Resources
Community
You can ask questions and interact with the community in the following locations:
- Brave Community
communitychannel on Brave Software's Slack
Languages
C++
36.9%
HTML
31.6%
Swift
9.4%
TypeScript
9%
Java
4.8%
Other
8.1%