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 17 matching lines...) Expand all Loading... | |
| 28 #include "chrome/browser/browser_process_platform_part_chromeos.h" | 28 #include "chrome/browser/browser_process_platform_part_chromeos.h" |
| 29 #include "chrome/browser/chrome_notification_types.h" | 29 #include "chrome/browser/chrome_notification_types.h" |
| 30 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 30 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
| 31 #include "chrome/browser/chromeos/accessibility/magnification_manager.h" | 31 #include "chrome/browser/chromeos/accessibility/magnification_manager.h" |
| 32 #include "chrome/browser/chromeos/accessibility/spoken_feedback_event_rewriter.h " | 32 #include "chrome/browser/chromeos/accessibility/spoken_feedback_event_rewriter.h " |
| 33 #include "chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager.h" | 33 #include "chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager.h" |
| 34 #include "chrome/browser/chromeos/app_mode/kiosk_app_launch_error.h" | 34 #include "chrome/browser/chromeos/app_mode/kiosk_app_launch_error.h" |
| 35 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 35 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| 36 #include "chrome/browser/chromeos/app_mode/kiosk_mode_idle_app_name_notification .h" | 36 #include "chrome/browser/chromeos/app_mode/kiosk_mode_idle_app_name_notification .h" |
| 37 #include "chrome/browser/chromeos/arc/arc_service_launcher.h" | 37 #include "chrome/browser/chromeos/arc/arc_service_launcher.h" |
| 38 #include "chrome/browser/chromeos/arc/trace/arc_trace_bridge.h" | |
| 38 #include "chrome/browser/chromeos/boot_times_recorder.h" | 39 #include "chrome/browser/chromeos/boot_times_recorder.h" |
| 39 #include "chrome/browser/chromeos/dbus/chrome_console_service_provider_delegate. h" | 40 #include "chrome/browser/chromeos/dbus/chrome_console_service_provider_delegate. h" |
| 40 #include "chrome/browser/chromeos/dbus/chrome_display_power_service_provider_del egate.h" | 41 #include "chrome/browser/chromeos/dbus/chrome_display_power_service_provider_del egate.h" |
| 41 #include "chrome/browser/chromeos/dbus/chrome_proxy_resolver_delegate.h" | 42 #include "chrome/browser/chromeos/dbus/chrome_proxy_resolver_delegate.h" |
| 42 #include "chrome/browser/chromeos/dbus/kiosk_info_service_provider.h" | 43 #include "chrome/browser/chromeos/dbus/kiosk_info_service_provider.h" |
| 43 #include "chrome/browser/chromeos/dbus/screen_lock_service_provider.h" | 44 #include "chrome/browser/chromeos/dbus/screen_lock_service_provider.h" |
| 44 #include "chrome/browser/chromeos/display/quirks_manager_delegate_impl.h" | 45 #include "chrome/browser/chromeos/display/quirks_manager_delegate_impl.h" |
| 45 #include "chrome/browser/chromeos/events/event_rewriter.h" | 46 #include "chrome/browser/chromeos/events/event_rewriter.h" |
| 46 #include "chrome/browser/chromeos/events/event_rewriter_controller.h" | 47 #include "chrome/browser/chromeos/events/event_rewriter_controller.h" |
| 47 #include "chrome/browser/chromeos/events/keyboard_driven_event_rewriter.h" | 48 #include "chrome/browser/chromeos/events/keyboard_driven_event_rewriter.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 102 #include "chromeos/audio/audio_devices_pref_handler_impl.h" | 103 #include "chromeos/audio/audio_devices_pref_handler_impl.h" |
| 103 #include "chromeos/audio/cras_audio_handler.h" | 104 #include "chromeos/audio/cras_audio_handler.h" |
| 104 #include "chromeos/cert_loader.h" | 105 #include "chromeos/cert_loader.h" |
| 105 #include "chromeos/chromeos_paths.h" | 106 #include "chromeos/chromeos_paths.h" |
| 106 #include "chromeos/chromeos_switches.h" | 107 #include "chromeos/chromeos_switches.h" |
| 107 #include "chromeos/components/tether/initializer.h" | 108 #include "chromeos/components/tether/initializer.h" |
| 108 #include "chromeos/cryptohome/async_method_caller.h" | 109 #include "chromeos/cryptohome/async_method_caller.h" |
| 109 #include "chromeos/cryptohome/cryptohome_parameters.h" | 110 #include "chromeos/cryptohome/cryptohome_parameters.h" |
| 110 #include "chromeos/cryptohome/homedir_methods.h" | 111 #include "chromeos/cryptohome/homedir_methods.h" |
| 111 #include "chromeos/cryptohome/system_salt_getter.h" | 112 #include "chromeos/cryptohome/system_salt_getter.h" |
| 113 #include "chromeos/dbus/arc_trace_agent.h" | |
| 112 #include "chromeos/dbus/dbus_thread_manager.h" | 114 #include "chromeos/dbus/dbus_thread_manager.h" |
| 113 #include "chromeos/dbus/power_policy_controller.h" | 115 #include "chromeos/dbus/power_policy_controller.h" |
| 114 #include "chromeos/dbus/services/console_service_provider.h" | 116 #include "chromeos/dbus/services/console_service_provider.h" |
| 115 #include "chromeos/dbus/services/cros_dbus_service.h" | 117 #include "chromeos/dbus/services/cros_dbus_service.h" |
| 116 #include "chromeos/dbus/services/display_power_service_provider.h" | 118 #include "chromeos/dbus/services/display_power_service_provider.h" |
| 117 #include "chromeos/dbus/services/liveness_service_provider.h" | 119 #include "chromeos/dbus/services/liveness_service_provider.h" |
| 118 #include "chromeos/dbus/services/proxy_resolution_service_provider.h" | 120 #include "chromeos/dbus/services/proxy_resolution_service_provider.h" |
| 119 #include "chromeos/dbus/session_manager_client.h" | 121 #include "chromeos/dbus/session_manager_client.h" |
| 120 #include "chromeos/disks/disk_mount_manager.h" | 122 #include "chromeos/disks/disk_mount_manager.h" |
| 121 #include "chromeos/login/login_state.h" | 123 #include "chromeos/login/login_state.h" |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 422 | 424 |
| 423 DeviceOAuth2TokenServiceFactory::Initialize(); | 425 DeviceOAuth2TokenServiceFactory::Initialize(); |
| 424 | 426 |
| 425 wake_on_wifi_manager_.reset(new WakeOnWifiManager()); | 427 wake_on_wifi_manager_.reset(new WakeOnWifiManager()); |
| 426 network_throttling_observer_.reset( | 428 network_throttling_observer_.reset( |
| 427 new NetworkThrottlingObserver(g_browser_process->local_state())); | 429 new NetworkThrottlingObserver(g_browser_process->local_state())); |
| 428 | 430 |
| 429 arc_service_launcher_.reset(new arc::ArcServiceLauncher()); | 431 arc_service_launcher_.reset(new arc::ArcServiceLauncher()); |
| 430 arc_service_launcher_->Initialize(); | 432 arc_service_launcher_->Initialize(); |
| 431 | 433 |
| 434 // Initialize dbus ArgTraceAgent by setting ArcTraceBridge. | |
|
Luis Héctor Chávez
2016/12/27 19:15:59
nit: s/ArgTraceAgent/ArcTraceAgent/
Also, this co
shunhsingou
2016/12/28 09:15:15
Done.
| |
| 435 DBusThreadManager::Get()->GetArcTraceAgent()->SetArcTraceBridge( | |
| 436 arc::ArcTraceBridge::Get()); | |
| 437 | |
| 432 chromeos::ResourceReporter::GetInstance()->StartMonitoring( | 438 chromeos::ResourceReporter::GetInstance()->StartMonitoring( |
| 433 task_manager::TaskManagerInterface::GetTaskManager()); | 439 task_manager::TaskManagerInterface::GetTaskManager()); |
| 434 | 440 |
| 435 ChromeBrowserMainPartsLinux::PreMainMessageLoopRun(); | 441 ChromeBrowserMainPartsLinux::PreMainMessageLoopRun(); |
| 436 } | 442 } |
| 437 | 443 |
| 438 void ChromeBrowserMainPartsChromeos::PreProfileInit() { | 444 void ChromeBrowserMainPartsChromeos::PreProfileInit() { |
| 439 // -- This used to be in ChromeBrowserMainParts::PreMainMessageLoopRun() | 445 // -- This used to be in ChromeBrowserMainParts::PreMainMessageLoopRun() |
| 440 // -- immediately before Profile creation(). | 446 // -- immediately before Profile creation(). |
| 441 | 447 |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 926 // Destroy DBus services immediately after threads are stopped. | 932 // Destroy DBus services immediately after threads are stopped. |
| 927 dbus_services_.reset(); | 933 dbus_services_.reset(); |
| 928 | 934 |
| 929 ChromeBrowserMainPartsLinux::PostDestroyThreads(); | 935 ChromeBrowserMainPartsLinux::PostDestroyThreads(); |
| 930 | 936 |
| 931 // Destroy DeviceSettingsService after g_browser_process. | 937 // Destroy DeviceSettingsService after g_browser_process. |
| 932 DeviceSettingsService::Shutdown(); | 938 DeviceSettingsService::Shutdown(); |
| 933 } | 939 } |
| 934 | 940 |
| 935 } // namespace chromeos | 941 } // namespace chromeos |
| OLD | NEW |