Files
brave-core/patches/chrome-browser-ui-browser.cc.patch
T

40 lines
2.0 KiB
Diff

diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index ca32d6faace3a9cd5f189626310a10fdf3fd87a2..1ab3833ce39dcafc5833ffec64f76fa0ab3189f7 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -544,7 +544,7 @@ Browser* Browser::Create(const CreateParams& params) {
// should handle this; see e.g. crbug.com/1141608 and crbug.com/1261628.
CHECK_EQ(CreationStatus::kOk, GetCreationStatusForProfile(params.profile));
- std::unique_ptr<Browser> browser = base::WrapUnique(new Browser(params));
+ std::unique_ptr<Browser> browser = base::WrapUnique(new BraveBrowser(params));
Browser* const browser_ptr = browser.get();
BrowserManagerServiceFactory::GetForProfile(params.profile)
->AddBrowser(std::move(browser));
@@ -560,7 +560,7 @@ std::unique_ptr<Browser> Browser::DeprecatedCreateOwnedForTesting(
// should handle this; see e.g. crbug.com/1141608 and crbug.com/1261628.
CHECK_EQ(CreationStatus::kOk, GetCreationStatusForProfile(params.profile));
- std::unique_ptr<Browser> browser = base::WrapUnique(new Browser(params));
+ std::unique_ptr<Browser> browser = base::WrapUnique(new BraveBrowser(params));
BrowserManagerServiceFactory::GetForProfile(params.profile)
->AddBrowserForTesting(browser.get());
return browser;
@@ -573,7 +573,7 @@ Browser::Browser(const CreateParams& params)
window_(nullptr),
tab_strip_model_delegate_(
std::make_unique<chrome::BrowserTabStripModelDelegate>(this)),
- tab_strip_model_(std::make_unique<TabStripModel>(
+ tab_strip_model_(std::make_unique<BraveTabStripModel>(
tab_strip_model_delegate_.get(),
params.profile,
// Tab groups are disabled for app browsers.
@@ -1321,6 +1321,7 @@ void Browser::OnWindowClosing() {
if (tab_restore_service && notify_restore_service) {
tab_restore_service->BrowserClosing(GetFeatures().live_tab_context());
}
+ BRAVE_BROWSER_ON_WINDOW_CLOSING
if (!tab_strip_model_->empty()) {
// Closing all the tabs results in eventually calling back to