Skip to content

Commit

Permalink
Fix: nw2: close event missing callback string during cmd + Q (OSX)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed Dec 12, 2019
1 parent 69c1838 commit 4e75fb4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions chrome/browser/browser_process_platform_part_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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<AppController>([NSApp delegate]);
if (![app_controller runConfirmQuitPanel])
return;
#endif
}

chrome_browser_application_mac::Terminate();
}

Expand Down

0 comments on commit 4e75fb4

Please sign in to comment.