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 "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
33 #include "content/public/browser/browser_shutdown.h" | 33 #include "content/public/browser/browser_shutdown.h" |
34 #include "content/public/browser/browser_thread.h" | 34 #include "content/public/browser/browser_thread.h" |
35 #include "content/public/browser/navigation_details.h" | 35 #include "content/public/browser/navigation_details.h" |
36 #include "content/public/browser/notification_service.h" | 36 #include "content/public/browser/notification_service.h" |
37 | 37 |
38 #if defined(OS_CHROMEOS) | 38 #if defined(OS_CHROMEOS) |
39 #include "base/sys_info.h" | 39 #include "base/sys_info.h" |
40 #include "chrome/browser/chromeos/boot_times_loader.h" | 40 #include "chrome/browser/chromeos/boot_times_loader.h" |
41 #include "chrome/browser/chromeos/login/user_manager.h" | 41 #include "chrome/browser/chromeos/login/users/user_manager.h" |
42 #include "chromeos/dbus/dbus_thread_manager.h" | 42 #include "chromeos/dbus/dbus_thread_manager.h" |
43 #include "chromeos/dbus/session_manager_client.h" | 43 #include "chromeos/dbus/session_manager_client.h" |
44 #include "chromeos/dbus/update_engine_client.h" | 44 #include "chromeos/dbus/update_engine_client.h" |
45 #endif | 45 #endif |
46 | 46 |
47 #if defined(OS_WIN) | 47 #if defined(OS_WIN) |
48 #include "base/win/win_util.h" | 48 #include "base/win/win_util.h" |
49 #endif | 49 #endif |
50 | 50 |
51 namespace chrome { | 51 namespace chrome { |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 // environment is still active. | 398 // environment is still active. |
399 if (browser->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_NATIVE) | 399 if (browser->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_NATIVE) |
400 return !ash::Shell::HasInstance(); | 400 return !ash::Shell::HasInstance(); |
401 else if (browser->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH) | 401 else if (browser->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH) |
402 return BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE)->empty(); | 402 return BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE)->empty(); |
403 #endif | 403 #endif |
404 return true; | 404 return true; |
405 } | 405 } |
406 | 406 |
407 } // namespace chrome | 407 } // namespace chrome |
OLD | NEW |