Files
brave-core/patches/chrome-browser-app_controller_mac.mm.patch
T

23 lines
1.2 KiB
Diff

diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index 210308ebaa5de98b31975d62d9f554b7720bb352..fdcded806e612f1061b8bec67d1b45b303ef2642 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -748,7 +748,7 @@ class AppControllerProfileObserver : public ProfileAttributesStorage::Observer,
+ (AppController*)sharedController {
static AppController* sharedController = [] {
- AppController* sharedController = [[AppController alloc] init];
+ AppController* sharedController = [[BraveAppController alloc] init];
NSApp.delegate = sharedController;
return sharedController;
}();
@@ -1421,7 +1421,7 @@ class AppControllerProfileObserver : public ProfileAttributesStorage::Observer,
}
auto it = _profileBookmarkMenuBridgeMap.find(profilePath);
- if (it != _profileBookmarkMenuBridgeMap.end() &&
+ if (it != _profileBookmarkMenuBridgeMap.end() && !isOffTheRecord &&
(!base::FeatureList::IsEnabled(features::kDestroyProfileOnBrowserClose) ||
(it->second->GetProfile() && !isOffTheRecord))) {
// Clean up the dangling Profile* in |_profileBookmarkMenuBridgeMap|.