| 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 // Add observers for WallpaperManager. This depends on PowerManagerClient, | 570 // Add observers for WallpaperManager. This depends on PowerManagerClient, |
| 572 // TimezoneSettings and CrosSettings. | 571 // TimezoneSettings and CrosSettings. |
| 573 WallpaperManager::Get()->AddObservers(); | 572 WallpaperManager::Get()->AddObservers(); |
| 574 | 573 |
| 575 #if defined(USE_LINUX_BREAKPAD) | 574 #if defined(USE_LINUX_BREAKPAD) |
| 576 cros_version_loader_.GetVersion(VersionLoader::VERSION_FULL, | 575 cros_version_loader_.GetVersion(VersionLoader::VERSION_FULL, |
| 577 base::Bind(&ChromeOSVersionCallback), | 576 base::Bind(&ChromeOSVersionCallback), |
| 578 &tracker_); | 577 &tracker_); |
| 579 #endif | 578 #endif |
| 580 | 579 |
| 581 storage_monitor_.reset(new StorageMonitorCros()); | |
| 582 | |
| 583 // Make sure that wallpaper boot transition and other delays in OOBE | 580 // Make sure that wallpaper boot transition and other delays in OOBE |
| 584 // are disabled for tests and kiosk app launch by default. | 581 // are disabled for tests and kiosk app launch by default. |
| 585 // Individual tests may enable them if they want. | 582 // Individual tests may enable them if they want. |
| 586 if (parsed_command_line().HasSwitch(::switches::kTestType) || | 583 if (parsed_command_line().HasSwitch(::switches::kTestType) || |
| 587 ShouldAutoLaunchKioskApp(parsed_command_line())) { | 584 ShouldAutoLaunchKioskApp(parsed_command_line())) { |
| 588 WizardController::SetZeroDelays(); | 585 WizardController::SetZeroDelays(); |
| 589 } | 586 } |
| 590 | 587 |
| 591 // In Aura builds this will initialize ash::Shell. | 588 // In Aura builds this will initialize ash::Shell. |
| 592 ChromeBrowserMainPartsLinux::PreProfileInit(); | 589 ChromeBrowserMainPartsLinux::PreProfileInit(); |
| (...skipping 218 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 |