Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4006)

Unified Diff: chrome/browser/browser_list_mac.mm

Issue 2866034: Refactor shutdown code to allow win/linux to run after last browser closes. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Uploaded patch that resolves merge issue Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_list_gtk.cc ('k') | chrome/browser/browser_list_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_list_mac.mm
diff --git a/chrome/browser/browser_list_mac.mm b/chrome/browser/browser_list_mac.mm
index f65a3e5c5f26123d12ef3b7f3b58c798e2d711bc..5c2ed9aa4590364a9975882256c86d3bc164e386 100644
--- a/chrome/browser/browser_list_mac.mm
+++ b/chrome/browser/browser_list_mac.mm
@@ -8,8 +8,7 @@
#import "chrome/browser/chrome_browser_application_mac.h"
// static
-void BrowserList::AllBrowsersClosed() {
- // Only terminate after all browsers are closed if trying quit.
- if (browser_shutdown::IsTryingToQuit())
- chrome_browser_application_mac::Terminate();
+void BrowserList::AllBrowsersClosedAndAppExiting() {
+ // Last browser is closed, so call back to controller to shutdown the app.
+ chrome_browser_application_mac::Terminate();
}
« no previous file with comments | « chrome/browser/browser_list_gtk.cc ('k') | chrome/browser/browser_list_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698