| 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 <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 #include "chrome/common/pref_names.h" | 90 #include "chrome/common/pref_names.h" |
| 91 #include "chromeos/audio/audio_pref_handler.h" | 91 #include "chromeos/audio/audio_pref_handler.h" |
| 92 #include "chromeos/chromeos_switches.h" | 92 #include "chromeos/chromeos_switches.h" |
| 93 #include "chromeos/cryptohome/async_method_caller.h" | 93 #include "chromeos/cryptohome/async_method_caller.h" |
| 94 #include "chromeos/dbus/dbus_thread_manager.h" | 94 #include "chromeos/dbus/dbus_thread_manager.h" |
| 95 #include "chromeos/dbus/power_manager_client.h" | 95 #include "chromeos/dbus/power_manager_client.h" |
| 96 #include "chromeos/dbus/session_manager_client.h" | 96 #include "chromeos/dbus/session_manager_client.h" |
| 97 #include "chromeos/disks/disk_mount_manager.h" | 97 #include "chromeos/disks/disk_mount_manager.h" |
| 98 #include "chromeos/ime/xkeyboard.h" | 98 #include "chromeos/ime/xkeyboard.h" |
| 99 #include "chromeos/login/login_state.h" | 99 #include "chromeos/login/login_state.h" |
| 100 #include "chromeos/network/certificate_handler.h" |
| 100 #include "chromeos/network/geolocation_handler.h" | 101 #include "chromeos/network/geolocation_handler.h" |
| 101 #include "chromeos/network/managed_network_configuration_handler.h" | 102 #include "chromeos/network/managed_network_configuration_handler.h" |
| 102 #include "chromeos/network/network_change_notifier_chromeos.h" | 103 #include "chromeos/network/network_change_notifier_chromeos.h" |
| 103 #include "chromeos/network/network_change_notifier_factory_chromeos.h" | 104 #include "chromeos/network/network_change_notifier_factory_chromeos.h" |
| 104 #include "chromeos/network/network_configuration_handler.h" | 105 #include "chromeos/network/network_configuration_handler.h" |
| 105 #include "chromeos/network/network_event_log.h" | 106 #include "chromeos/network/network_event_log.h" |
| 106 #include "chromeos/network/network_state_handler.h" | 107 #include "chromeos/network/network_state_handler.h" |
| 107 #include "content/public/browser/browser_thread.h" | 108 #include "content/public/browser/browser_thread.h" |
| 108 #include "content/public/browser/notification_service.h" | 109 #include "content/public/browser/notification_service.h" |
| 109 #include "content/public/browser/power_save_blocker.h" | 110 #include "content/public/browser/power_save_blocker.h" |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 cryptohome::AsyncMethodCaller::Initialize(); | 301 cryptohome::AsyncMethodCaller::Initialize(); |
| 301 | 302 |
| 302 chromeos::LoginState::Initialize(); | 303 chromeos::LoginState::Initialize(); |
| 303 | 304 |
| 304 // Always initialize these handlers which should not conflict with | 305 // Always initialize these handlers which should not conflict with |
| 305 // NetworkLibrary. | 306 // NetworkLibrary. |
| 306 chromeos::network_event_log::Initialize(); | 307 chromeos::network_event_log::Initialize(); |
| 307 chromeos::GeolocationHandler::Initialize(); | 308 chromeos::GeolocationHandler::Initialize(); |
| 308 chromeos::NetworkStateHandler::Initialize(); | 309 chromeos::NetworkStateHandler::Initialize(); |
| 309 | 310 |
| 311 chromeos::CertificateHandler::Initialize(); |
| 312 |
| 310 chromeos::NetworkConfigurationHandler::Initialize(); | 313 chromeos::NetworkConfigurationHandler::Initialize(); |
| 311 chromeos::ManagedNetworkConfigurationHandler::Initialize(); | 314 chromeos::ManagedNetworkConfigurationHandler::Initialize(); |
| 312 | 315 |
| 313 // Initialize the network change notifier for Chrome OS. The network | 316 // Initialize the network change notifier for Chrome OS. The network |
| 314 // change notifier starts to monitor changes from the power manager and | 317 // change notifier starts to monitor changes from the power manager and |
| 315 // the network manager. | 318 // the network manager. |
| 316 if (CommandLine::ForCurrentProcess()->HasSwitch( | 319 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 317 chromeos::switches::kEnableNewNetworkChangeNotifier)) { | 320 chromeos::switches::kEnableNewNetworkChangeNotifier)) { |
| 318 NetworkChangeNotifierFactoryChromeos::GetInstance()->Initialize(); | 321 NetworkChangeNotifierFactoryChromeos::GetInstance()->Initialize(); |
| 319 } else { | 322 } else { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 346 // is initialized first becuase some of its libraries depend on DBus | 349 // is initialized first becuase some of its libraries depend on DBus |
| 347 // clients. | 350 // clients. |
| 348 // TODO(hashimoto): Resolve this situation by removing CrosLibrary. | 351 // TODO(hashimoto): Resolve this situation by removing CrosLibrary. |
| 349 // (crosbug.com/26160) | 352 // (crosbug.com/26160) |
| 350 if (cros_initialized_ && CrosLibrary::Get()) | 353 if (cros_initialized_ && CrosLibrary::Get()) |
| 351 CrosLibrary::Shutdown(); | 354 CrosLibrary::Shutdown(); |
| 352 | 355 |
| 353 chromeos::ManagedNetworkConfigurationHandler::Shutdown(); | 356 chromeos::ManagedNetworkConfigurationHandler::Shutdown(); |
| 354 chromeos::NetworkConfigurationHandler::Shutdown(); | 357 chromeos::NetworkConfigurationHandler::Shutdown(); |
| 355 | 358 |
| 359 chromeos::CertificateHandler::Shutdown(); |
| 360 |
| 356 chromeos::NetworkStateHandler::Shutdown(); | 361 chromeos::NetworkStateHandler::Shutdown(); |
| 357 chromeos::GeolocationHandler::Shutdown(); | 362 chromeos::GeolocationHandler::Shutdown(); |
| 358 chromeos::network_event_log::Shutdown(); | 363 chromeos::network_event_log::Shutdown(); |
| 359 | 364 |
| 360 chromeos::LoginState::Shutdown(); | 365 chromeos::LoginState::Shutdown(); |
| 361 | 366 |
| 362 cryptohome::AsyncMethodCaller::Shutdown(); | 367 cryptohome::AsyncMethodCaller::Shutdown(); |
| 363 disks::DiskMountManager::Shutdown(); | 368 disks::DiskMountManager::Shutdown(); |
| 364 input_method::Shutdown(); | 369 input_method::Shutdown(); |
| 365 CrosDBusService::Shutdown(); | 370 CrosDBusService::Shutdown(); |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 trial->AppendGroup("4GB_RAM_4GB_swap", zram_group == '4' ? 1 : 0); | 862 trial->AppendGroup("4GB_RAM_4GB_swap", zram_group == '4' ? 1 : 0); |
| 858 trial->AppendGroup("4GB_RAM_6GB_swap", zram_group == '5' ? 1 : 0); | 863 trial->AppendGroup("4GB_RAM_6GB_swap", zram_group == '5' ? 1 : 0); |
| 859 trial->AppendGroup("snow_no_swap", zram_group == '6' ? 1 : 0); | 864 trial->AppendGroup("snow_no_swap", zram_group == '6' ? 1 : 0); |
| 860 trial->AppendGroup("snow_1GB_swap", zram_group == '7' ? 1 : 0); | 865 trial->AppendGroup("snow_1GB_swap", zram_group == '7' ? 1 : 0); |
| 861 trial->AppendGroup("snow_2GB_swap", zram_group == '8' ? 1 : 0); | 866 trial->AppendGroup("snow_2GB_swap", zram_group == '8' ? 1 : 0); |
| 862 // This is necessary to start the experiment as a side effect. | 867 // This is necessary to start the experiment as a side effect. |
| 863 trial->group(); | 868 trial->group(); |
| 864 } | 869 } |
| 865 | 870 |
| 866 } // namespace chromeos | 871 } // namespace chromeos |
| OLD | NEW |