[cr147][Android] Changes for local search being visible

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/afb98db40a7b9cdadc42e55aa469a186e0dd92dc

commit afb98db40a7b9cdadc42e55aa469a186e0dd92dc
Author: Jinsuk Kim <jinsukkim@chromium.org>
Date:   Wed Feb 11 13:29:26 2026 -0800

    [SettingsSearch] Fix local search being visible

    Fixes a bug of making the local search visible  together with settings
    search by accident. A regression caused the search coordinator passed
    to FragmentDependencyProvider before being initialized. Replaced
    the coordinator with its supplier to address it.

    Bug: 483010813
    Change-Id: Ie9cfe9d03e56a3480b5a978290ca5222122eafd1
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7568002
    Reviewed-by: Moe Adel <adelm@google.com>
    Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1583490}
This commit is contained in:
Artem Samoilenko
2026-03-26 19:24:57 -04:00
committed by Max Karolinskiy
parent efb447cd02
commit 2f7aa3e5b8
2 changed files with 5 additions and 4 deletions
@@ -22,6 +22,8 @@ import org.chromium.chrome.browser.ui.messages.snackbar.SnackbarManager;
import org.chromium.components.browser_ui.bottomsheet.BottomSheetController;
import org.chromium.ui.modaldialog.ModalDialogManager;
import java.util.function.Supplier;
@NullMarked
public class BraveFragmentDependencyProvider extends FragmentDependencyProvider {
private final Profile mProfile;
@@ -32,14 +34,14 @@ public class BraveFragmentDependencyProvider extends FragmentDependencyProvider
OneshotSupplier<SnackbarManager> snackbarManagerSupplier,
OneshotSupplier<BottomSheetController> bottomSheetControllerSupplier,
MonotonicObservableSupplier<ModalDialogManager> modalDialogManagerSupplier,
@Nullable SettingsSearchCoordinator searchCoordinator) {
Supplier<@Nullable SettingsSearchCoordinator> searchCoordinatorSupplier) {
super(
context,
profile,
snackbarManagerSupplier,
bottomSheetControllerSupplier,
modalDialogManagerSupplier,
searchCoordinator);
searchCoordinatorSupplier);
mProfile = profile;
}