From a93244407e205a8619d620ce91bafbdf88eab195 Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Mon, 12 Oct 2009 04:32:14 +0000 Subject: SIGTERM should cause the application to exit on the Mac. BUG=23551 TEST=Send SIGTERM to the browser process. It should exit cleanly. Review URL: http://codereview.chromium.org/269048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28695 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser_list.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chrome/browser/browser_list.h') diff --git a/chrome/browser/browser_list.h b/chrome/browser/browser_list.h index de07b9a..b510b8c 100644 --- a/chrome/browser/browser_list.h +++ b/chrome/browser/browser_list.h @@ -78,6 +78,12 @@ class BrowserList { // the session. use_post should only be false when invoked from end session. static void CloseAllBrowsers(bool use_post); + // Closes all browsers and exits. This is equivalent to + // CloseAllBrowsers(true) on platforms where the application exits when no + // more windows are remaining. On other platforms (the Mac), this will + // additionally exit the application. + static void CloseAllBrowsersAndExit(); + // Begins shutdown of the application when the Windows session is ending. static void WindowsSessionEnding(); -- cgit v1.1