OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/browser_shutdown.h" | 5 #include "chrome/browser/browser_shutdown.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 } | 282 } |
283 | 283 |
284 void SetTryingToQuit(bool quitting) { | 284 void SetTryingToQuit(bool quitting) { |
285 g_trying_to_quit = quitting; | 285 g_trying_to_quit = quitting; |
286 } | 286 } |
287 | 287 |
288 bool IsTryingToQuit() { | 288 bool IsTryingToQuit() { |
289 return g_trying_to_quit; | 289 return g_trying_to_quit; |
290 } | 290 } |
291 | 291 |
| 292 bool ShuttingDownWithoutClosingBrowsers() { |
| 293 #if defined(USE_X11) |
| 294 if (GetShutdownType() == browser_shutdown::END_SESSION) |
| 295 return true; |
| 296 #endif |
| 297 return false; |
| 298 } |
| 299 |
292 } // namespace browser_shutdown | 300 } // namespace browser_shutdown |
OLD | NEW |