| Index: chrome/browser/app_controller_mac.mm
|
| diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
|
| index 366c3860e8093f49bc8daa52f1a3f1fdf747e88b..e5d1bdb2c6384e29a8b50463bc4093dc57327496 100644
|
| --- a/chrome/browser/app_controller_mac.mm
|
| +++ b/chrome/browser/app_controller_mac.mm
|
| @@ -393,8 +393,8 @@ class AppControllerProfileObserver : public ProfileInfoCacheObserver {
|
|
|
| // Check for active apps. If quitting is prevented, only close browsers and
|
| // sessions.
|
| - if (!browser_shutdown::IsTryingToQuit() &&
|
| - quitWithAppsController_ && !quitWithAppsController_->ShouldQuit()) {
|
| + if (!browser_shutdown::IsTryingToQuit() && quitWithAppsController_.get() &&
|
| + !quitWithAppsController_->ShouldQuit()) {
|
| content::NotificationService::current()->Notify(
|
| chrome::NOTIFICATION_CLOSE_ALL_BROWSERS_REQUEST,
|
| content::NotificationService::AllSources(),
|
|
|