diff --git a/chrome/browser/browser_process_platform_part_mac.mm b/chrome/browser/browser_process_platform_part_mac.mm index 1c08654b70089..80f597ae13e8d 100644 --- a/chrome/browser/browser_process_platform_part_mac.mm +++ b/chrome/browser/browser_process_platform_part_mac.mm @@ -4,6 +4,8 @@ #include "chrome/browser/browser_process_platform_part_mac.h" +#include "chrome/browser/lifetime/application_lifetime.h" + #include "base/mac/foundation_util.h" #import "chrome/browser/app_controller_mac.h" #include "chrome/browser/chrome_browser_application_mac.h" @@ -29,15 +31,17 @@ // come down this code path at all.) URL requests to exit have // |try_to_quit_application| set to true; keyboard menu invocations have it // set to false. - if (!try_to_quit_application) { + chrome::CloseAllBrowsers(false, true); + return; +#if 0 // A keyboard menu invocation. AppController* app_controller = base::mac::ObjCCastStrict([NSApp delegate]); if (![app_controller runConfirmQuitPanel]) return; +#endif } - chrome_browser_application_mac::Terminate(); }