Index: chrome/browser/browser_shutdown.cc |
diff --git a/chrome/browser/browser_shutdown.cc b/chrome/browser/browser_shutdown.cc |
index 2170b71cd11823aef8ddd6403663125dd9f37a62..0902aef663918ee8c9ed54d61b20bbe839bd3085 100644 |
--- a/chrome/browser/browser_shutdown.cc |
+++ b/chrome/browser/browser_shutdown.cc |
@@ -60,6 +60,9 @@ namespace browser_shutdown { |
// Whether the browser is trying to quit (e.g., Quit chosen from menu). |
bool g_trying_to_quit = false; |
+// Whether the browser should quit without closing browsers. |
+bool g_shutting_down_without_closing_browsers = false; |
+ |
Time shutdown_started_; |
ShutdownType shutdown_type_ = NOT_VALID; |
int shutdown_num_processes_; |
@@ -310,11 +313,11 @@ bool IsTryingToQuit() { |
} |
bool ShuttingDownWithoutClosingBrowsers() { |
-#if defined(USE_X11) |
- if (GetShutdownType() == browser_shutdown::END_SESSION) |
- return true; |
-#endif |
- return false; |
+ return g_shutting_down_without_closing_browsers; |
+} |
+ |
+void SetShuttingDownWithoutClosingBrowsers(bool without_close) { |
+ g_shutting_down_without_closing_browsers = without_close; |
} |
} // namespace browser_shutdown |