23 lines
1.2 KiB
Diff
23 lines
1.2 KiB
Diff
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
|
|
index 33ac0c1324424ed4a8dabd06b6b7a36bf5b408a2..f6903c37725bb690d491631cb64eff3bd82b2c70 100644
|
|
--- a/chrome/browser/app_controller_mac.mm
|
|
+++ b/chrome/browser/app_controller_mac.mm
|
|
@@ -784,7 +784,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;
|
|
}();
|
|
@@ -1496,7 +1496,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|.
|