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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 // Add observers for WallpaperManager. This depends on PowerManagerClient, | 558 // Add observers for WallpaperManager. This depends on PowerManagerClient, |
560 // TimezoneSettings and CrosSettings. | 559 // TimezoneSettings and CrosSettings. |
561 WallpaperManager::Get()->AddObservers(); | 560 WallpaperManager::Get()->AddObservers(); |
562 | 561 |
563 #if defined(USE_LINUX_BREAKPAD) | 562 #if defined(USE_LINUX_BREAKPAD) |
564 cros_version_loader_.GetVersion(VersionLoader::VERSION_FULL, | 563 cros_version_loader_.GetVersion(VersionLoader::VERSION_FULL, |
565 base::Bind(&ChromeOSVersionCallback), | 564 base::Bind(&ChromeOSVersionCallback), |
566 &tracker_); | 565 &tracker_); |
567 #endif | 566 #endif |
568 | 567 |
569 storage_monitor_.reset(new StorageMonitorCros()); | |
570 | |
571 // Make sure that wallpaper boot transition and other delays in OOBE | 568 // Make sure that wallpaper boot transition and other delays in OOBE |
572 // are disabled for tests and kiosk app launch by default. | 569 // are disabled for tests and kiosk app launch by default. |
573 // Individual tests may enable them if they want. | 570 // Individual tests may enable them if they want. |
574 if (parsed_command_line().HasSwitch(::switches::kTestType) || | 571 if (parsed_command_line().HasSwitch(::switches::kTestType) || |
575 ShouldAutoLaunchKioskApp(parsed_command_line())) { | 572 ShouldAutoLaunchKioskApp(parsed_command_line())) { |
576 WizardController::SetZeroDelays(); | 573 WizardController::SetZeroDelays(); |
577 } | 574 } |
578 | 575 |
579 // In Aura builds this will initialize ash::Shell. | 576 // In Aura builds this will initialize ash::Shell. |
580 ChromeBrowserMainPartsLinux::PreProfileInit(); | 577 ChromeBrowserMainPartsLinux::PreProfileInit(); |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 // Let classes unregister themselves as observers of the ash::Shell singleton | 808 // Let classes unregister themselves as observers of the ash::Shell singleton |
812 // before the shell is destroyed. | 809 // before the shell is destroyed. |
813 user_activity_notifier_.reset(); | 810 user_activity_notifier_.reset(); |
814 video_activity_notifier_.reset(); | 811 video_activity_notifier_.reset(); |
815 display_configuration_observer_.reset(); | 812 display_configuration_observer_.reset(); |
816 | 813 |
817 // Detach D-Bus clients before DBusThreadManager is shut down. | 814 // Detach D-Bus clients before DBusThreadManager is shut down. |
818 power_button_observer_.reset(); | 815 power_button_observer_.reset(); |
819 screensaver_controller_.reset(); | 816 screensaver_controller_.reset(); |
820 idle_action_warning_observer_.reset(); | 817 idle_action_warning_observer_.reset(); |
821 storage_monitor_.reset(); | |
822 | 818 |
823 // Delete ContactManager while |g_browser_process| is still alive. | 819 // Delete ContactManager while |g_browser_process| is still alive. |
824 contact_manager_.reset(); | 820 contact_manager_.reset(); |
825 | 821 |
826 MagnificationManager::Shutdown(); | 822 MagnificationManager::Shutdown(); |
827 AccessibilityManager::Shutdown(); | 823 AccessibilityManager::Shutdown(); |
828 | 824 |
829 // Let the UserManager and WallpaperManager unregister itself as an observer | 825 // Let the UserManager and WallpaperManager unregister itself as an observer |
830 // of the CrosSettings singleton before it is destroyed. | 826 // of the CrosSettings singleton before it is destroyed. |
831 UserManager::Get()->Shutdown(); | 827 UserManager::Get()->Shutdown(); |
(...skipping 19 matching lines...) Expand all Loading... |
851 ChromeBrowserMainPartsLinux::PostDestroyThreads(); | 847 ChromeBrowserMainPartsLinux::PostDestroyThreads(); |
852 // Destroy DeviceSettingsService after g_browser_process. | 848 // Destroy DeviceSettingsService after g_browser_process. |
853 DeviceSettingsService::Shutdown(); | 849 DeviceSettingsService::Shutdown(); |
854 } | 850 } |
855 | 851 |
856 void ChromeBrowserMainPartsChromeos::SetupPlatformFieldTrials() { | 852 void ChromeBrowserMainPartsChromeos::SetupPlatformFieldTrials() { |
857 default_pinned_apps_field_trial::SetupTrial(); | 853 default_pinned_apps_field_trial::SetupTrial(); |
858 } | 854 } |
859 | 855 |
860 } // namespace chromeos | 856 } // namespace chromeos |
OLD | NEW |