[cr139] NavigationThrottleRegistry::MaybeAddThrottle removed (#29607)
This is an overall improvement on how the registry manages these
throttles, but it ends up touching a lot of places, and the way all
throttles are instantiated.
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/b1629ea692c8614cb272bd693571aa887de92c6c
https://chromium.googlesource.com/chromium/src/+/79566dfffd2c4d74aea54bcff1b3957bbeb1342d
https://chromium.googlesource.com/chromium/src/+/eca5027cdfc38625db8ac467fd5b4bf703befa6b
commit b1629ea692c8614cb272bd693571aa887de92c6c
Author: Takashi Toyoshima <toyoshim@chromium.org>
Date: Mon Jun 9 22:58:01 2025 -0700
NavigationThrottleRunner2: Remove MaybeAddThrottle
Now all callers pass a valid NavigationThrottle instance to add their
throttles to the registry as now the registration is done by the end
users, and they know if they need to register a throttle or not.
Bug: 412524375
Change-Id: I9144fd327fb21be5362157ee84a267012796f2dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6628079
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1471602}
commit 79566dfffd2c4d74aea54bcff1b3957bbeb1342d
Author: Takashi Toyoshima <toyoshim@chromium.org>
Date: Thu May 15 08:05:50 2025 -0700
NavigationThrottleRunner2: NavigationThrottle migration for chrome 1
This is a follow-up of crrev.com/c/6510776, and applies the same ctor
migration to the former half of throttles used in
ChromeContentBrowserClient.
Bug: 412524375
Change-Id: I834478c8d1dfd117527546ae0a5bbd12aa46c361
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6536175
Reviewed-by: Colin Blundell <blundell@chromium.org>
Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org>
Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org>
Reviewed-by: David Roger <droger@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1460728}
commit eca5027cdfc38625db8ac467fd5b4bf703befa6b
Author: Takashi Toyoshima <toyoshim@chromium.org>
Date: Tue May 27 22:12:22 2025 -0700
NavigationThrottleRunner2: NavigationThrottle ctor migration //content 2
This patch migrates former half remaining throttles that are
registered in the content::NavigationThrottleRunner, but haven't
migrated to use the new constructor yet.
Bug: 412524375
Change-Id: I1fc5c9e4efe368d539751aeda0c324321c9ff30d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6585462
Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1466303}
Resolves https://github.com/brave/brave-browser/issues/46902