diff --git a/browser/ui/views/infobars/web_discovery_infobar_content_view.cc b/browser/ui/views/infobars/web_discovery_infobar_content_view.cc index a3af50a3f41..c2e07857d3d 100644 --- a/browser/ui/views/infobars/web_discovery_infobar_content_view.cc +++ b/browser/ui/views/infobars/web_discovery_infobar_content_view.cc @@ -51,8 +51,7 @@ constexpr int kNarrowLayoutHorizontalPadding = 10; void OpenMoreInfoPage() { if (auto* browser = GetLastActiveBrowserWindowInterfaceWithAnyProfile()) { - ShowSingletonTab(browser->GetBrowserForMigrationOnly(), - GURL(kWebDiscoveryLearnMoreUrl)); + ShowSingletonTab(browser, GURL(kWebDiscoveryLearnMoreUrl)); } } diff --git a/browser/ui/webui/brave_adblock_ui.cc b/browser/ui/webui/brave_adblock_ui.cc index 387a9369068..74b7941d45d 100644 --- a/browser/ui/webui/brave_adblock_ui.cc +++ b/browser/ui/webui/brave_adblock_ui.cc @@ -31,6 +31,7 @@ #include "chrome/browser/android/tab_web_contents_delegate_android.h" #include "content/public/browser/web_contents.h" #else +#include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_finder.h" #include "chrome/browser/ui/browser_navigator_params.h" #include "chrome/browser/ui/singleton_tabs.h" diff --git a/browser/ui/webui/settings/brave_adblock_handler.cc b/browser/ui/webui/settings/brave_adblock_handler.cc index dbaf2d5a53e..237990f8497 100644 --- a/browser/ui/webui/settings/brave_adblock_handler.cc +++ b/browser/ui/webui/settings/brave_adblock_handler.cc @@ -24,6 +24,7 @@ #include "brave/components/brave_shields/core/common/pref_names.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/profiles/profile.h" +#include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_finder.h" #include "chrome/browser/ui/singleton_tabs.h" #include "content/public/browser/web_ui.h" diff --git a/chromium_src/chrome/browser/ui/singleton_tabs.cc b/chromium_src/chrome/browser/ui/singleton_tabs.cc index 07a38de6b56..13d4f21ef59 100644 --- a/chromium_src/chrome/browser/ui/singleton_tabs.cc +++ b/chromium_src/chrome/browser/ui/singleton_tabs.cc @@ -12,7 +12,7 @@ // and remote (on https://www.google.com and https://support.google.com). // For remote URLs going to Google we want to point users to our community site // instead. -void ShowSingletonTab(Browser* browser, const GURL& url) { +void ShowSingletonTab(BrowserWindowInterface* browser, const GURL& url) { GURL new_url = url.DomainIs("google.com") ? GURL("https://community.brave.app/") : url;