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