OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/lifetime/application_lifetime.h" | 5 #include "chrome/browser/lifetime/application_lifetime.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/notifications/notification_ui_manager.h" | 9 #include "chrome/browser/notifications/notification_ui_manager.h" |
10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
| 11 #include "ui/aura/root_window.h" |
11 #include "ui/views/widget/widget.h" | 12 #include "ui/views/widget/widget.h" |
12 | 13 |
13 #if defined(USE_ASH) | 14 #if defined(USE_ASH) |
14 #include "ash/shell.h" | 15 #include "ash/shell.h" |
15 #include "ui/aura/client/capture_client.h" | 16 #include "ui/aura/client/capture_client.h" |
16 #endif | 17 #endif |
17 | 18 |
18 #if defined(OS_CHROMEOS) | 19 #if defined(OS_CHROMEOS) |
19 #include "chromeos/display/output_configurator.h" | 20 #include "chromeos/display/output_configurator.h" |
20 #endif | 21 #endif |
(...skipping 28 matching lines...) Expand all Loading... |
49 // This might be called from FastShutdown() or CloseAllBrowsers(), but not | 50 // This might be called from FastShutdown() or CloseAllBrowsers(), but not |
50 // if something prevents a browser from closing before SetTryingToQuit() | 51 // if something prevents a browser from closing before SetTryingToQuit() |
51 // gets called (e.g. browser->TabsNeedBeforeUnloadFired() is true). | 52 // gets called (e.g. browser->TabsNeedBeforeUnloadFired() is true). |
52 // NotifyAndTerminate does nothing if called more than once. | 53 // NotifyAndTerminate does nothing if called more than once. |
53 NotifyAndTerminate(true); | 54 NotifyAndTerminate(true); |
54 } | 55 } |
55 #endif // OS_CHROMEOS | 56 #endif // OS_CHROMEOS |
56 } | 57 } |
57 | 58 |
58 } // namespace chrome | 59 } // namespace chrome |
OLD | NEW |