OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/prefs/browser_prefs.h" | 5 #include "chrome/browser/prefs/browser_prefs.h" |
6 | 6 |
7 #include "chrome/browser/about_flags.h" | 7 #include "chrome/browser/about_flags.h" |
8 #include "chrome/browser/autofill/autofill_manager.h" | 8 #include "chrome/browser/autofill/autofill_manager.h" |
9 #include "chrome/browser/background/background_mode_manager.h" | 9 #include "chrome/browser/background/background_mode_manager.h" |
10 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "chrome/browser/metrics/metrics_service.h" | 28 #include "chrome/browser/metrics/metrics_service.h" |
29 #include "chrome/browser/net/http_server_properties_manager.h" | 29 #include "chrome/browser/net/http_server_properties_manager.h" |
30 #include "chrome/browser/net/net_pref_observer.h" | 30 #include "chrome/browser/net/net_pref_observer.h" |
31 #include "chrome/browser/net/predictor.h" | 31 #include "chrome/browser/net/predictor.h" |
32 #include "chrome/browser/net/ssl_config_service_manager.h" | 32 #include "chrome/browser/net/ssl_config_service_manager.h" |
33 #include "chrome/browser/notifications/desktop_notification_service.h" | 33 #include "chrome/browser/notifications/desktop_notification_service.h" |
34 #include "chrome/browser/notifications/notification_ui_manager.h" | 34 #include "chrome/browser/notifications/notification_ui_manager.h" |
35 #include "chrome/browser/page_info_model.h" | 35 #include "chrome/browser/page_info_model.h" |
36 #include "chrome/browser/password_manager/password_manager.h" | 36 #include "chrome/browser/password_manager/password_manager.h" |
37 #include "chrome/browser/policy/cloud_policy_subsystem.h" | 37 #include "chrome/browser/policy/cloud_policy_subsystem.h" |
38 #include "chrome/browser/policy/device_status_collector.h" | |
39 #include "chrome/browser/policy/url_blacklist_manager.h" | 38 #include "chrome/browser/policy/url_blacklist_manager.h" |
40 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 39 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
41 #include "chrome/browser/prefs/session_startup_pref.h" | 40 #include "chrome/browser/prefs/session_startup_pref.h" |
42 #include "chrome/browser/printing/print_job_manager.h" | 41 #include "chrome/browser/printing/print_job_manager.h" |
43 #include "chrome/browser/profiles/gaia_info_update_service.h" | 42 #include "chrome/browser/profiles/gaia_info_update_service.h" |
44 #include "chrome/browser/profiles/profile_impl.h" | 43 #include "chrome/browser/profiles/profile_impl.h" |
45 #include "chrome/browser/profiles/profile_info_cache.h" | 44 #include "chrome/browser/profiles/profile_info_cache.h" |
46 #include "chrome/browser/profiles/profile_manager.h" | 45 #include "chrome/browser/profiles/profile_manager.h" |
47 #include "chrome/browser/renderer_host/web_cache_manager.h" | 46 #include "chrome/browser/renderer_host/web_cache_manager.h" |
48 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 47 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 #if defined(OS_CHROMEOS) | 83 #if defined(OS_CHROMEOS) |
85 #include "chrome/browser/chromeos/audio_mixer_alsa.h" | 84 #include "chrome/browser/chromeos/audio_mixer_alsa.h" |
86 #include "chrome/browser/chromeos/customization_document.h" | 85 #include "chrome/browser/chromeos/customization_document.h" |
87 #include "chrome/browser/chromeos/login/signed_settings_cache.h" | 86 #include "chrome/browser/chromeos/login/signed_settings_cache.h" |
88 #include "chrome/browser/chromeos/login/user_manager.h" | 87 #include "chrome/browser/chromeos/login/user_manager.h" |
89 #include "chrome/browser/chromeos/login/wizard_controller.h" | 88 #include "chrome/browser/chromeos/login/wizard_controller.h" |
90 #include "chrome/browser/chromeos/preferences.h" | 89 #include "chrome/browser/chromeos/preferences.h" |
91 #include "chrome/browser/chromeos/proxy_config_service_impl.h" | 90 #include "chrome/browser/chromeos/proxy_config_service_impl.h" |
92 #include "chrome/browser/chromeos/status/input_method_menu.h" | 91 #include "chrome/browser/chromeos/status/input_method_menu.h" |
93 #include "chrome/browser/chromeos/status/network_menu_button.h" | 92 #include "chrome/browser/chromeos/status/network_menu_button.h" |
| 93 #include "chrome/browser/policy/device_status_collector.h" |
94 #else | 94 #else |
95 #include "chrome/browser/extensions/default_apps.h" | 95 #include "chrome/browser/extensions/default_apps.h" |
96 #endif | 96 #endif |
97 | 97 |
98 namespace browser { | 98 namespace browser { |
99 | 99 |
100 void RegisterLocalState(PrefService* local_state) { | 100 void RegisterLocalState(PrefService* local_state) { |
101 // Prefs in Local State | 101 // Prefs in Local State |
102 local_state->RegisterIntegerPref(prefs::kMultipleProfilePrefMigration, 0); | 102 local_state->RegisterIntegerPref(prefs::kMultipleProfilePrefMigration, 0); |
103 AppsPromo::RegisterPrefs(local_state); | 103 AppsPromo::RegisterPrefs(local_state); |
(...skipping 19 matching lines...) Expand all Loading... |
123 #endif | 123 #endif |
124 UpgradeDetector::RegisterPrefs(local_state); | 124 UpgradeDetector::RegisterPrefs(local_state); |
125 TaskManager::RegisterPrefs(local_state); | 125 TaskManager::RegisterPrefs(local_state); |
126 geolocation::RegisterPrefs(local_state); | 126 geolocation::RegisterPrefs(local_state); |
127 BackgroundModeManager::RegisterPrefs(local_state); | 127 BackgroundModeManager::RegisterPrefs(local_state); |
128 NotificationUIManager::RegisterPrefs(local_state); | 128 NotificationUIManager::RegisterPrefs(local_state); |
129 PrefProxyConfigTrackerImpl::RegisterPrefs(local_state); | 129 PrefProxyConfigTrackerImpl::RegisterPrefs(local_state); |
130 SSLConfigServiceManager::RegisterPrefs(local_state); | 130 SSLConfigServiceManager::RegisterPrefs(local_state); |
131 #if defined(ENABLE_CONFIGURATION_POLICY) | 131 #if defined(ENABLE_CONFIGURATION_POLICY) |
132 policy::CloudPolicySubsystem::RegisterPrefs(local_state); | 132 policy::CloudPolicySubsystem::RegisterPrefs(local_state); |
133 policy::DeviceStatusCollector::RegisterPrefs(local_state); | |
134 #endif | 133 #endif |
135 ProfileInfoCache::RegisterPrefs(local_state); | 134 ProfileInfoCache::RegisterPrefs(local_state); |
136 ProfileManager::RegisterPrefs(local_state); | 135 ProfileManager::RegisterPrefs(local_state); |
137 #if defined(OS_CHROMEOS) | 136 #if defined(OS_CHROMEOS) |
138 chromeos::AudioMixerAlsa::RegisterPrefs(local_state); | 137 chromeos::AudioMixerAlsa::RegisterPrefs(local_state); |
139 chromeos::UserManager::RegisterPrefs(local_state); | 138 chromeos::UserManager::RegisterPrefs(local_state); |
140 chromeos::WizardController::RegisterPrefs(local_state); | 139 chromeos::WizardController::RegisterPrefs(local_state); |
141 chromeos::InputMethodMenu::RegisterPrefs(local_state); | 140 chromeos::InputMethodMenu::RegisterPrefs(local_state); |
142 chromeos::ServicesCustomizationDocument::RegisterPrefs(local_state); | 141 chromeos::ServicesCustomizationDocument::RegisterPrefs(local_state); |
143 chromeos::signed_settings_cache::RegisterPrefs(local_state); | 142 chromeos::signed_settings_cache::RegisterPrefs(local_state); |
144 chromeos::NetworkMenuButton::RegisterPrefs(local_state); | 143 chromeos::NetworkMenuButton::RegisterPrefs(local_state); |
145 chromeos::ProxyConfigServiceImpl::RegisterPrefs(local_state); | 144 chromeos::ProxyConfigServiceImpl::RegisterPrefs(local_state); |
| 145 policy::DeviceStatusCollector::RegisterPrefs(local_state); |
146 #endif | 146 #endif |
147 } | 147 } |
148 | 148 |
149 void RegisterUserPrefs(PrefService* user_prefs) { | 149 void RegisterUserPrefs(PrefService* user_prefs) { |
150 // User prefs | 150 // User prefs |
151 AppsPromo::RegisterUserPrefs(user_prefs); | 151 AppsPromo::RegisterUserPrefs(user_prefs); |
152 AutofillManager::RegisterUserPrefs(user_prefs); | 152 AutofillManager::RegisterUserPrefs(user_prefs); |
153 SessionStartupPref::RegisterUserPrefs(user_prefs); | 153 SessionStartupPref::RegisterUserPrefs(user_prefs); |
154 BookmarkModel::RegisterUserPrefs(user_prefs); | 154 BookmarkModel::RegisterUserPrefs(user_prefs); |
155 Browser::RegisterUserPrefs(user_prefs); | 155 Browser::RegisterUserPrefs(user_prefs); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 user_prefs->Set(prefs::kBrowserWindowPlacement, *(pref->GetValue())); | 226 user_prefs->Set(prefs::kBrowserWindowPlacement, *(pref->GetValue())); |
227 } | 227 } |
228 local_state->ClearPref(prefs::kBrowserWindowPlacement); | 228 local_state->ClearPref(prefs::kBrowserWindowPlacement); |
229 | 229 |
230 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, | 230 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, |
231 current_version | WINDOWS_PREFS); | 231 current_version | WINDOWS_PREFS); |
232 } | 232 } |
233 } | 233 } |
234 | 234 |
235 } // namespace browser | 235 } // namespace browser |
OLD | NEW |