[cr148][Android] Replace ConfirmationDialogHelper with ActionConfirmationDialog
Chromium change: https://source.chromium.org/chromium/chromium/src/+/f3ba4ddfcd5f49cded342e0fe965cb2dee67f5bc commit f3ba4ddfcd5f49cded342e0fe965cb2dee67f5bc Author: Piotr Kotynia <piotrkotynia@google.com> Date: Wed Mar 25 06:50:24 2026 -0700 [Android] Replace ConfirmationDialogHelper with ActionConfirmationDialog This CL deprecates the ConfirmationDialogHelper and replaces its usage inside the keyboard accessory with the generic ActionConfirmationDialog from browser_ui. End-to-end integration testing for the deletion dialog flow inside the keyboard accessory will be added in a follow-up CL. Bug: 440257087 Change-Id: I3844d662d5295eb670792384f4ea403a675661d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7666141 Reviewed-by: Friedrich Hauser <friedrichh@chromium.org> Commit-Queue: Piotr Kotynia <piotrkotynia@google.com> Reviewed-by: Sky Malice <skym@chromium.org> Auto-Submit: Piotr Kotynia <piotrkotynia@google.com> Cr-Commit-Position: refs/heads/main@{#1604763}
This commit is contained in:
+6
-1
@@ -30,6 +30,7 @@ import java.util.function.Supplier;
|
||||
@NullMarked
|
||||
public class BraveFragmentDependencyProvider extends FragmentDependencyProvider {
|
||||
private final Profile mProfile;
|
||||
private final OneshotSupplier<WindowAndroid> mWindowAndroidSupplier;
|
||||
|
||||
public BraveFragmentDependencyProvider(
|
||||
Activity activity,
|
||||
@@ -50,13 +51,17 @@ public class BraveFragmentDependencyProvider extends FragmentDependencyProvider
|
||||
modalDialogManagerSupplier,
|
||||
searchCoordinatorSupplier);
|
||||
mProfile = profile;
|
||||
mWindowAndroidSupplier = windowAndroidSupplier;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFragmentAttached(
|
||||
FragmentManager fragmentManager, Fragment fragment, Context unusedContext) {
|
||||
if (fragment instanceof CredentialEntryFragmentViewBase) {
|
||||
CredentialEditUiFactory.create((CredentialEntryFragmentViewBase) fragment, mProfile);
|
||||
CredentialEditUiFactory.create(
|
||||
(CredentialEntryFragmentViewBase) fragment,
|
||||
mProfile,
|
||||
mWindowAndroidSupplier.get());
|
||||
}
|
||||
|
||||
super.onFragmentAttached(fragmentManager, fragment, unusedContext);
|
||||
|
||||
Reference in New Issue
Block a user