Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/chromeos/chrome_browser_main_chromeos.h" | 5 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 52 #include "chrome/browser/chromeos/login/helper.h" | 52 #include "chrome/browser/chromeos/login/helper.h" |
| 53 #include "chrome/browser/chromeos/login/lock/screen_locker.h" | 53 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
| 54 #include "chrome/browser/chromeos/login/login_wizard.h" | 54 #include "chrome/browser/chromeos/login/login_wizard.h" |
| 55 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage.h" | 55 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage.h" |
| 56 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h" | 56 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h" |
| 57 #include "chrome/browser/chromeos/login/session/user_session_manager.h" | 57 #include "chrome/browser/chromeos/login/session/user_session_manager.h" |
| 58 #include "chrome/browser/chromeos/login/startup_utils.h" | 58 #include "chrome/browser/chromeos/login/startup_utils.h" |
| 59 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 59 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" |
| 60 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | 60 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
| 61 #include "chrome/browser/chromeos/login/wizard_controller.h" | 61 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 62 #include "chrome/browser/chromeos/net/network_connect_delegate_chromeos.h" | |
| 62 #include "chrome/browser/chromeos/net/network_portal_detector_impl.h" | 63 #include "chrome/browser/chromeos/net/network_portal_detector_impl.h" |
| 63 #include "chrome/browser/chromeos/net/wake_on_wifi_manager.h" | 64 #include "chrome/browser/chromeos/net/wake_on_wifi_manager.h" |
| 64 #include "chrome/browser/chromeos/options/cert_library.h" | 65 #include "chrome/browser/chromeos/options/cert_library.h" |
| 65 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact ory.h" | 66 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact ory.h" |
| 66 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 67 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 67 #include "chrome/browser/chromeos/policy/device_local_account.h" | 68 #include "chrome/browser/chromeos/policy/device_local_account.h" |
| 68 #include "chrome/browser/chromeos/power/freezer_cgroup_process_manager.h" | 69 #include "chrome/browser/chromeos/power/freezer_cgroup_process_manager.h" |
| 69 #include "chrome/browser/chromeos/power/idle_action_warning_observer.h" | 70 #include "chrome/browser/chromeos/power/idle_action_warning_observer.h" |
| 70 #include "chrome/browser/chromeos/power/login_lock_state_notifier.h" | 71 #include "chrome/browser/chromeos/power/login_lock_state_notifier.h" |
| 71 #include "chrome/browser/chromeos/power/peripheral_battery_observer.h" | 72 #include "chrome/browser/chromeos/power/peripheral_battery_observer.h" |
| 72 #include "chrome/browser/chromeos/power/power_data_collector.h" | 73 #include "chrome/browser/chromeos/power/power_data_collector.h" |
| 73 #include "chrome/browser/chromeos/power/power_prefs.h" | 74 #include "chrome/browser/chromeos/power/power_prefs.h" |
| 74 #include "chrome/browser/chromeos/power/renderer_freezer.h" | 75 #include "chrome/browser/chromeos/power/renderer_freezer.h" |
| 75 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 76 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 76 #include "chrome/browser/chromeos/resource_reporter/resource_reporter.h" | 77 #include "chrome/browser/chromeos/resource_reporter/resource_reporter.h" |
| 77 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h " | 78 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h " |
| 78 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 79 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
| 79 #include "chrome/browser/chromeos/status/data_promo_notification.h" | 80 #include "chrome/browser/chromeos/status/data_promo_notification.h" |
| 80 #include "chrome/browser/chromeos/system/input_device_settings.h" | 81 #include "chrome/browser/chromeos/system/input_device_settings.h" |
| 81 #include "chrome/browser/chromeos/ui/low_disk_notification.h" | 82 #include "chrome/browser/chromeos/ui/low_disk_notification.h" |
| 82 #include "chrome/browser/chromeos/upgrade_detector_chromeos.h" | 83 #include "chrome/browser/chromeos/upgrade_detector_chromeos.h" |
| 83 #include "chrome/browser/defaults.h" | 84 #include "chrome/browser/defaults.h" |
| 84 #include "chrome/browser/lifetime/application_lifetime.h" | 85 #include "chrome/browser/lifetime/application_lifetime.h" |
| 85 #include "chrome/browser/net/chrome_network_delegate.h" | 86 #include "chrome/browser/net/chrome_network_delegate.h" |
| 86 #include "chrome/browser/profiles/profile.h" | 87 #include "chrome/browser/profiles/profile.h" |
| 87 #include "chrome/browser/profiles/profile_manager.h" | 88 #include "chrome/browser/profiles/profile_manager.h" |
| 88 #include "chrome/browser/task_manager/task_manager_interface.h" | 89 #include "chrome/browser/task_manager/task_manager_interface.h" |
| 89 #include "chrome/browser/ui/ash/ash_util.h" | 90 #include "chrome/browser/ui/ash/ash_util.h" |
| 90 #include "chrome/browser/ui/ash/network_connect_delegate_chromeos.h" | |
| 91 #include "chrome/common/channel_info.h" | 91 #include "chrome/common/channel_info.h" |
| 92 #include "chrome/common/chrome_constants.h" | 92 #include "chrome/common/chrome_constants.h" |
| 93 #include "chrome/common/chrome_paths.h" | 93 #include "chrome/common/chrome_paths.h" |
| 94 #include "chrome/common/chrome_switches.h" | 94 #include "chrome/common/chrome_switches.h" |
| 95 #include "chrome/common/logging_chrome.h" | 95 #include "chrome/common/logging_chrome.h" |
| 96 #include "chrome/common/pref_names.h" | 96 #include "chrome/common/pref_names.h" |
| 97 #include "chromeos/audio/audio_devices_pref_handler_impl.h" | 97 #include "chromeos/audio/audio_devices_pref_handler_impl.h" |
| 98 #include "chromeos/audio/cras_audio_handler.h" | 98 #include "chromeos/audio/cras_audio_handler.h" |
| 99 #include "chromeos/cert_loader.h" | 99 #include "chromeos/cert_loader.h" |
| 100 #include "chromeos/chromeos_paths.h" | 100 #include "chromeos/chromeos_paths.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 246 NetworkHandler::Initialize(); | 246 NetworkHandler::Initialize(); |
| 247 CertLibrary::Initialize(); | 247 CertLibrary::Initialize(); |
| 248 | 248 |
| 249 // Initialize the network change notifier for Chrome OS. The network | 249 // Initialize the network change notifier for Chrome OS. The network |
| 250 // change notifier starts to monitor changes from the power manager and | 250 // change notifier starts to monitor changes from the power manager and |
| 251 // the network manager. | 251 // the network manager. |
| 252 NetworkChangeNotifierFactoryChromeos::GetInstance()->Initialize(); | 252 NetworkChangeNotifierFactoryChromeos::GetInstance()->Initialize(); |
| 253 | 253 |
| 254 // Initialize the NetworkConnect handler. | 254 // Initialize the NetworkConnect handler. |
| 255 network_connect_delegate_.reset(new NetworkConnectDelegateChromeOS); | 255 network_connect_delegate_.reset(new NetworkConnectDelegateChromeOS); |
| 256 ui::NetworkConnect::Initialize(network_connect_delegate_.get()); | 256 chromeos::NetworkConnect::Initialize(network_connect_delegate_.get()); |
|
James Cook
2016/10/20 00:11:43
nit: chromeos:: maybe not needed here? (We're in n
stevenjb
2016/10/20 00:57:22
Done.
| |
| 257 | 257 |
| 258 // Likewise, initialize the upgrade detector for Chrome OS. The upgrade | 258 // Likewise, initialize the upgrade detector for Chrome OS. The upgrade |
| 259 // detector starts to monitor changes from the update engine. | 259 // detector starts to monitor changes from the update engine. |
| 260 UpgradeDetectorChromeos::GetInstance()->Init(); | 260 UpgradeDetectorChromeos::GetInstance()->Init(); |
| 261 | 261 |
| 262 // Initialize the device settings service so that we'll take actions per | 262 // Initialize the device settings service so that we'll take actions per |
| 263 // signals sent from the session manager. This needs to happen before | 263 // signals sent from the session manager. This needs to happen before |
| 264 // g_browser_process initializes BrowserPolicyConnector. | 264 // g_browser_process initializes BrowserPolicyConnector. |
| 265 DeviceSettingsService::Initialize(); | 265 DeviceSettingsService::Initialize(); |
| 266 DeviceSettingsService::Get()->SetSessionManager( | 266 DeviceSettingsService::Get()->SetSessionManager( |
| 267 DBusThreadManager::Get()->GetSessionManagerClient(), | 267 DBusThreadManager::Get()->GetSessionManagerClient(), |
| 268 OwnerSettingsServiceChromeOSFactory::GetInstance()->GetOwnerKeyUtil()); | 268 OwnerSettingsServiceChromeOSFactory::GetInstance()->GetOwnerKeyUtil()); |
| 269 } | 269 } |
| 270 | 270 |
| 271 ~DBusServices() { | 271 ~DBusServices() { |
| 272 ui::NetworkConnect::Shutdown(); | 272 chromeos::NetworkConnect::Shutdown(); |
| 273 network_connect_delegate_.reset(); | 273 network_connect_delegate_.reset(); |
| 274 CertLibrary::Shutdown(); | 274 CertLibrary::Shutdown(); |
| 275 NetworkHandler::Shutdown(); | 275 NetworkHandler::Shutdown(); |
| 276 cryptohome::AsyncMethodCaller::Shutdown(); | 276 cryptohome::AsyncMethodCaller::Shutdown(); |
| 277 disks::DiskMountManager::Shutdown(); | 277 disks::DiskMountManager::Shutdown(); |
| 278 SystemSaltGetter::Shutdown(); | 278 SystemSaltGetter::Shutdown(); |
| 279 LoginState::Shutdown(); | 279 LoginState::Shutdown(); |
| 280 CertLoader::Shutdown(); | 280 CertLoader::Shutdown(); |
| 281 TPMTokenLoader::Shutdown(); | 281 TPMTokenLoader::Shutdown(); |
| 282 CrosDBusService::Shutdown(); | 282 CrosDBusService::Shutdown(); |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 889 // Destroy DBus services immediately after threads are stopped. | 889 // Destroy DBus services immediately after threads are stopped. |
| 890 dbus_services_.reset(); | 890 dbus_services_.reset(); |
| 891 | 891 |
| 892 ChromeBrowserMainPartsLinux::PostDestroyThreads(); | 892 ChromeBrowserMainPartsLinux::PostDestroyThreads(); |
| 893 | 893 |
| 894 // Destroy DeviceSettingsService after g_browser_process. | 894 // Destroy DeviceSettingsService after g_browser_process. |
| 895 DeviceSettingsService::Shutdown(); | 895 DeviceSettingsService::Shutdown(); |
| 896 } | 896 } |
| 897 | 897 |
| 898 } // namespace chromeos | 898 } // namespace chromeos |
| OLD | NEW |