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

Unified Diff: chrome/browser/browser_list_mac.mm

Issue 1520006: Mac: reform our shutdown routine. (Closed)
Patch Set: changed comment Created 10 years, 8 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.cc ('k') | chrome/browser/browser_shutdown.h » ('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
new file mode 100644
index 0000000000000000000000000000000000000000..f65a3e5c5f26123d12ef3b7f3b58c798e2d711bc
--- /dev/null
+++ b/chrome/browser/browser_list_mac.mm
@@ -0,0 +1,15 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/browser_list.h"
+
+#include "chrome/browser/browser_shutdown.h"
+#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();
+}
« no previous file with comments | « chrome/browser/browser_list.cc ('k') | chrome/browser/browser_shutdown.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698