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

Unified Diff: chrome/browser/ui/browser_list.h

Issue 8271003: Shutdown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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/ui/browser_list.h
diff --git a/chrome/browser/ui/browser_list.h b/chrome/browser/ui/browser_list.h
index 447f6cb907cb255bfbb90baad7af1f46d35c752a..fc45cf320d910b32616b2ad2c35c605cbaaabe07 100644
--- a/chrome/browser/ui/browser_list.h
+++ b/chrome/browser/ui/browser_list.h
@@ -10,6 +10,7 @@
#include <vector>
#include "base/observer_list.h"
+#include "chrome/browser/browser_shutdown.h"
#include "chrome/browser/ui/browser.h"
#include "ui/gfx/native_widget_types.h"
@@ -150,8 +151,10 @@ class BrowserList {
// Closes all browsers for |profile|.
static void CloseAllBrowsersWithProfile(Profile* profile);
- // Begins shutdown of the application when the desktop session is ending.
- static void SessionEnding();
+ // Begins force shutdown. |type| can be one of POWER_OFF (when
+ // user is logging of/OS is powering off), or SHUTDOWN_WITHOUT_CLOSE
+ // (when X11 is gonoe).
+ static void ForceShutdown(browser_shutdown::ShutdowType type);
// Returns true if there is at least one Browser with the specified profile.
static bool HasBrowserWithProfile(Profile* profile);

Powered by Google App Engine
This is Rietveld 408576698