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

Unified Diff: chrome/browser/lifetime/application_lifetime_mac.mm

Issue 10409022: Move application lifetime functionality off BrowserList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
Index: chrome/browser/lifetime/application_lifetime_mac.mm
===================================================================
--- chrome/browser/lifetime/application_lifetime_mac.mm (revision 0)
+++ chrome/browser/lifetime/application_lifetime_mac.mm (working copy)
@@ -2,13 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/browser_list.h"
+#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/browser_shutdown.h"
#import "chrome/browser/chrome_browser_application_mac.h"
-// static
-void BrowserList::HandleAppExitingForPlatform() {
+namespace browser {
+
+void HandleAppExitingForPlatform() {
// Last browser is closed, so call back to controller to shutdown the app.
chrome_browser_application_mac::Terminate();
}
+
+} // namespace browser
« no previous file with comments | « chrome/browser/lifetime/application_lifetime_gtk.cc ('k') | chrome/browser/lifetime/application_lifetime_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698