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

Unified Diff: chrome/browser/lifetime/application_lifetime_gtk.cc

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_gtk.cc
===================================================================
--- chrome/browser/lifetime/application_lifetime_gtk.cc (revision 0)
+++ chrome/browser/lifetime/application_lifetime_gtk.cc (working copy)
@@ -2,12 +2,13 @@
// 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 <gtk/gtk.h>
-// static
-void BrowserList::HandleAppExitingForPlatform() {
+namespace browser {
+
+void HandleAppExitingForPlatform() {
// Close non-browser windows.
GList* window_list = gtk_window_list_toplevels();
g_list_foreach(window_list, (GFunc)g_object_ref, NULL);
@@ -25,3 +26,5 @@
g_list_foreach(window_list, (GFunc)g_object_unref, NULL);
g_list_free(window_list);
}
+
+} // namespace browser
« no previous file with comments | « chrome/browser/lifetime/application_lifetime_aura.cc ('k') | chrome/browser/lifetime/application_lifetime_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698