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/ash_switches.h" | 10 #include "ash/ash_switches.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 #include "chrome/browser/chromeos/upgrade_detector_chromeos.h" | 77 #include "chrome/browser/chromeos/upgrade_detector_chromeos.h" |
78 #include "chrome/browser/chromeos/web_socket_proxy_controller.h" | 78 #include "chrome/browser/chromeos/web_socket_proxy_controller.h" |
79 #include "chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.h" | 79 #include "chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.h" |
80 #include "chrome/browser/defaults.h" | 80 #include "chrome/browser/defaults.h" |
81 #include "chrome/browser/metrics/metrics_service.h" | 81 #include "chrome/browser/metrics/metrics_service.h" |
82 #include "chrome/browser/net/chrome_network_delegate.h" | 82 #include "chrome/browser/net/chrome_network_delegate.h" |
83 #include "chrome/browser/policy/browser_policy_connector.h" | 83 #include "chrome/browser/policy/browser_policy_connector.h" |
84 #include "chrome/browser/profiles/profile.h" | 84 #include "chrome/browser/profiles/profile.h" |
85 #include "chrome/browser/profiles/profile_manager.h" | 85 #include "chrome/browser/profiles/profile_manager.h" |
86 #include "chrome/browser/rlz/rlz.h" | 86 #include "chrome/browser/rlz/rlz.h" |
87 #include "chrome/browser/storage_monitor/storage_monitor_chromeos.h" | |
88 #include "chrome/common/chrome_notification_types.h" | 87 #include "chrome/common/chrome_notification_types.h" |
89 #include "chrome/common/chrome_paths.h" | 88 #include "chrome/common/chrome_paths.h" |
90 #include "chrome/common/chrome_switches.h" | 89 #include "chrome/common/chrome_switches.h" |
91 #include "chrome/common/chrome_version_info.h" | 90 #include "chrome/common/chrome_version_info.h" |
92 #include "chrome/common/logging_chrome.h" | 91 #include "chrome/common/logging_chrome.h" |
93 #include "chrome/common/pref_names.h" | 92 #include "chrome/common/pref_names.h" |
94 #include "chromeos/audio/audio_devices_pref_handler.h" | 93 #include "chromeos/audio/audio_devices_pref_handler.h" |
95 #include "chromeos/audio/audio_pref_handler.h" | 94 #include "chromeos/audio/audio_pref_handler.h" |
96 #include "chromeos/audio/cras_audio_handler.h" | 95 #include "chromeos/audio/cras_audio_handler.h" |
97 #include "chromeos/chromeos_paths.h" | 96 #include "chromeos/chromeos_paths.h" |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 // Add observers for WallpaperManager. This depends on PowerManagerClient, | 562 // Add observers for WallpaperManager. This depends on PowerManagerClient, |
564 // TimezoneSettings and CrosSettings. | 563 // TimezoneSettings and CrosSettings. |
565 WallpaperManager::Get()->AddObservers(); | 564 WallpaperManager::Get()->AddObservers(); |
566 | 565 |
567 #if defined(USE_LINUX_BREAKPAD) | 566 #if defined(USE_LINUX_BREAKPAD) |
568 cros_version_loader_.GetVersion(VersionLoader::VERSION_FULL, | 567 cros_version_loader_.GetVersion(VersionLoader::VERSION_FULL, |
569 base::Bind(&ChromeOSVersionCallback), | 568 base::Bind(&ChromeOSVersionCallback), |
570 &tracker_); | 569 &tracker_); |
571 #endif | 570 #endif |
572 | 571 |
573 storage_monitor_.reset(new StorageMonitorCros()); | |
574 | |
575 // Make sure that wallpaper boot transition and other delays in OOBE | 572 // Make sure that wallpaper boot transition and other delays in OOBE |
576 // are disabled for tests and kiosk app launch by default. | 573 // are disabled for tests and kiosk app launch by default. |
577 // Individual tests may enable them if they want. | 574 // Individual tests may enable them if they want. |
578 if (parsed_command_line().HasSwitch(::switches::kTestType) || | 575 if (parsed_command_line().HasSwitch(::switches::kTestType) || |
579 ShouldAutoLaunchKioskApp(parsed_command_line())) { | 576 ShouldAutoLaunchKioskApp(parsed_command_line())) { |
580 WizardController::SetZeroDelays(); | 577 WizardController::SetZeroDelays(); |
581 } | 578 } |
582 | 579 |
583 // In Aura builds this will initialize ash::Shell. | 580 // In Aura builds this will initialize ash::Shell. |
584 ChromeBrowserMainPartsLinux::PreProfileInit(); | 581 ChromeBrowserMainPartsLinux::PreProfileInit(); |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 // Let classes unregister themselves as observers of the ash::Shell singleton | 812 // Let classes unregister themselves as observers of the ash::Shell singleton |
816 // before the shell is destroyed. | 813 // before the shell is destroyed. |
817 user_activity_notifier_.reset(); | 814 user_activity_notifier_.reset(); |
818 video_activity_notifier_.reset(); | 815 video_activity_notifier_.reset(); |
819 display_configuration_observer_.reset(); | 816 display_configuration_observer_.reset(); |
820 | 817 |
821 // Detach D-Bus clients before DBusThreadManager is shut down. | 818 // Detach D-Bus clients before DBusThreadManager is shut down. |
822 power_button_observer_.reset(); | 819 power_button_observer_.reset(); |
823 screensaver_controller_.reset(); | 820 screensaver_controller_.reset(); |
824 idle_action_warning_observer_.reset(); | 821 idle_action_warning_observer_.reset(); |
825 storage_monitor_.reset(); | |
826 | 822 |
827 // Delete ContactManager while |g_browser_process| is still alive. | 823 // Delete ContactManager while |g_browser_process| is still alive. |
828 contact_manager_.reset(); | 824 contact_manager_.reset(); |
829 | 825 |
830 MagnificationManager::Shutdown(); | 826 MagnificationManager::Shutdown(); |
831 AccessibilityManager::Shutdown(); | 827 AccessibilityManager::Shutdown(); |
832 | 828 |
833 // Let the UserManager and WallpaperManager unregister itself as an observer | 829 // Let the UserManager and WallpaperManager unregister itself as an observer |
834 // of the CrosSettings singleton before it is destroyed. | 830 // of the CrosSettings singleton before it is destroyed. |
835 UserManager::Get()->Shutdown(); | 831 UserManager::Get()->Shutdown(); |
(...skipping 19 matching lines...) Expand all Loading... |
855 ChromeBrowserMainPartsLinux::PostDestroyThreads(); | 851 ChromeBrowserMainPartsLinux::PostDestroyThreads(); |
856 // Destroy DeviceSettingsService after g_browser_process. | 852 // Destroy DeviceSettingsService after g_browser_process. |
857 DeviceSettingsService::Shutdown(); | 853 DeviceSettingsService::Shutdown(); |
858 } | 854 } |
859 | 855 |
860 void ChromeBrowserMainPartsChromeos::SetupPlatformFieldTrials() { | 856 void ChromeBrowserMainPartsChromeos::SetupPlatformFieldTrials() { |
861 default_pinned_apps_field_trial::SetupTrial(); | 857 default_pinned_apps_field_trial::SetupTrial(); |
862 } | 858 } |
863 | 859 |
864 } // namespace chromeos | 860 } // namespace chromeos |
OLD | NEW |