[Android] New param for MultiInstanceManagerApi31 class

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/94794635ed8558f2892ff4055c93239492448e68

[TabTearing] Restrict closing empty window after tab reparenting to
desktop windowing mode

Currently, when the only tab in a Chrome window is dragged out and into
another Chrome window in multiwindow mode, the empty source window is
closed. Restrict closing the empty window to desktop windowing mode,
such a window should continue to exist in split screen after tab
reparenting.

Bug: 333411285
This commit is contained in:
Artem Samoilenko
2024-05-03 16:54:30 -04:00
committed by mkarolin
parent 40b0bc089c
commit 623ffe6c3c
2 changed files with 6 additions and 3 deletions
@@ -33,14 +33,16 @@ class BraveMultiInstanceManagerApi31 extends MultiInstanceManagerApi31 {
MultiWindowModeStateDispatcher multiWindowModeStateDispatcher,
ActivityLifecycleDispatcher activityLifecycleDispatcher,
ObservableSupplier<ModalDialogManager> modalDialogManagerSupplier,
MenuOrKeyboardActionController menuOrKeyboardActionController) {
MenuOrKeyboardActionController menuOrKeyboardActionController,
ObservableSupplier<Boolean> desktopWindowModeSupplier) {
super(
activity,
tabModelOrchestratorSupplier,
multiWindowModeStateDispatcher,
activityLifecycleDispatcher,
modalDialogManagerSupplier,
menuOrKeyboardActionController);
menuOrKeyboardActionController,
desktopWindowModeSupplier);
}
@Override
@@ -1128,7 +1128,8 @@ public class BytecodeTest {
MultiWindowModeStateDispatcher.class,
ActivityLifecycleDispatcher.class,
ObservableSupplier.class,
MenuOrKeyboardActionController.class));
MenuOrKeyboardActionController.class,
ObservableSupplier.class));
Assert.assertTrue(
constructorsMatch(
"org/chromium/chrome/browser/multiwindow/MultiWindowUtils",