AddIncognitoBrowser removed from BrowserList

Just use `AddBrowser`, as it can deduce that the browser in question is
incognito based on the browser state it was created with.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/2fb769fc7d101f10e18c447cfe1eedcb25655516

commit 2fb769fc7d101f10e18c447cfe1eedcb25655516
Author: Gauthier Ambard <gambard@chromium.org>
Date:   Thu Jul 4 12:39:27 2024 +0000

    [iOS] Differentiate inactive browser in the BrowserList

    This CL makes sure to differentiate between the inactive and active
    regular browsers in the BrowserList.

    Fixed: 349074585
This commit is contained in:
Claudio DeSouza
2024-08-07 21:31:29 -04:00
committed by mkarolin
parent 3f4da85346
commit 3fb1aa7554
+1 -1
View File
@@ -233,7 +233,7 @@ const BraveCoreLogSeverity BraveCoreLogSeverityVerbose =
_otr_browserList =
BrowserListFactory::GetForBrowserState(otrChromeBrowserState);
_otr_browser = Browser::Create(otrChromeBrowserState, {});
_otr_browserList->AddIncognitoBrowser(_otr_browser.get());
_otr_browserList->AddBrowser(_otr_browser.get());
// Initialize the provider UI global state.
ios::provider::InitializeUI();