OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 #include "chrome/browser/chromeos/file_system_provider/registry.h" | 162 #include "chrome/browser/chromeos/file_system_provider/registry.h" |
163 #include "chrome/browser/chromeos/first_run/first_run.h" | 163 #include "chrome/browser/chromeos/first_run/first_run.h" |
164 #include "chrome/browser/chromeos/login/default_pinned_apps_field_trial.h" | 164 #include "chrome/browser/chromeos/login/default_pinned_apps_field_trial.h" |
165 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter.h" | 165 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter.h" |
166 #include "chrome/browser/chromeos/login/session/user_session_manager.h" | 166 #include "chrome/browser/chromeos/login/session/user_session_manager.h" |
167 #include "chrome/browser/chromeos/login/startup_utils.h" | 167 #include "chrome/browser/chromeos/login/startup_utils.h" |
168 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager.h" | 168 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager.h" |
169 #include "chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.h" | 169 #include "chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.h" |
170 #include "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h" | 170 #include "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h" |
171 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller.h" | 171 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller.h" |
| 172 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
172 #include "chrome/browser/chromeos/net/proxy_config_handler.h" | 173 #include "chrome/browser/chromeos/net/proxy_config_handler.h" |
173 #include "chrome/browser/chromeos/policy/auto_enrollment_client.h" | 174 #include "chrome/browser/chromeos/policy/auto_enrollment_client.h" |
174 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 175 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
175 #include "chrome/browser/chromeos/policy/consumer_management_service.h" | 176 #include "chrome/browser/chromeos/policy/consumer_management_service.h" |
176 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" | 177 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" |
177 #include "chrome/browser/chromeos/policy/device_status_collector.h" | 178 #include "chrome/browser/chromeos/policy/device_status_collector.h" |
178 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h" | 179 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h" |
179 #include "chrome/browser/chromeos/power/power_prefs.h" | 180 #include "chrome/browser/chromeos/power/power_prefs.h" |
180 #include "chrome/browser/chromeos/preferences.h" | 181 #include "chrome/browser/chromeos/preferences.h" |
181 #include "chrome/browser/chromeos/settings/device_oauth2_token_service.h" | 182 #include "chrome/browser/chromeos/settings/device_oauth2_token_service.h" |
(...skipping 25 matching lines...) Expand all Loading... |
207 #endif | 208 #endif |
208 | 209 |
209 #if defined(TOOLKIT_VIEWS) | 210 #if defined(TOOLKIT_VIEWS) |
210 #include "chrome/browser/ui/browser_view_prefs.h" | 211 #include "chrome/browser/ui/browser_view_prefs.h" |
211 #endif | 212 #endif |
212 | 213 |
213 #if defined(USE_ASH) | 214 #if defined(USE_ASH) |
214 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" | 215 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
215 #endif | 216 #endif |
216 | 217 |
217 #if !defined(USE_ATHENA) | |
218 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | |
219 #endif | |
220 | |
221 namespace { | 218 namespace { |
222 | 219 |
223 enum MigratedPreferences { | 220 enum MigratedPreferences { |
224 NO_PREFS = 0, | 221 NO_PREFS = 0, |
225 DNS_PREFS = 1 << 0, | 222 DNS_PREFS = 1 << 0, |
226 WINDOWS_PREFS = 1 << 1, | 223 WINDOWS_PREFS = 1 << 1, |
227 }; | 224 }; |
228 | 225 |
229 // A previous feature (see | 226 // A previous feature (see |
230 // chrome/browser/protector/protected_prefs_watcher.cc in source | 227 // chrome/browser/protector/protected_prefs_watcher.cc in source |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 chromeos::Preferences::RegisterPrefs(registry); | 335 chromeos::Preferences::RegisterPrefs(registry); |
339 chromeos::proxy_config::RegisterPrefs(registry); | 336 chromeos::proxy_config::RegisterPrefs(registry); |
340 chromeos::RegisterDisplayLocalStatePrefs(registry); | 337 chromeos::RegisterDisplayLocalStatePrefs(registry); |
341 chromeos::ResetScreenHandler::RegisterPrefs(registry); | 338 chromeos::ResetScreenHandler::RegisterPrefs(registry); |
342 chromeos::ServicesCustomizationDocument::RegisterPrefs(registry); | 339 chromeos::ServicesCustomizationDocument::RegisterPrefs(registry); |
343 chromeos::SigninScreenHandler::RegisterPrefs(registry); | 340 chromeos::SigninScreenHandler::RegisterPrefs(registry); |
344 chromeos::StartupUtils::RegisterPrefs(registry); | 341 chromeos::StartupUtils::RegisterPrefs(registry); |
345 chromeos::system::AutomaticRebootManager::RegisterPrefs(registry); | 342 chromeos::system::AutomaticRebootManager::RegisterPrefs(registry); |
346 chromeos::UserImageManager::RegisterPrefs(registry); | 343 chromeos::UserImageManager::RegisterPrefs(registry); |
347 chromeos::UserSessionManager::RegisterPrefs(registry); | 344 chromeos::UserSessionManager::RegisterPrefs(registry); |
348 #if !defined(USE_ATHENA) | |
349 chromeos::WallpaperManager::RegisterPrefs(registry); | 345 chromeos::WallpaperManager::RegisterPrefs(registry); |
350 #endif | |
351 chromeos::echo_offer::RegisterPrefs(registry); | 346 chromeos::echo_offer::RegisterPrefs(registry); |
352 extensions::ExtensionAssetsManagerChromeOS::RegisterPrefs(registry); | 347 extensions::ExtensionAssetsManagerChromeOS::RegisterPrefs(registry); |
353 invalidation::InvalidatorStorage::RegisterPrefs(registry); | 348 invalidation::InvalidatorStorage::RegisterPrefs(registry); |
354 policy::AutoEnrollmentClient::RegisterPrefs(registry); | 349 policy::AutoEnrollmentClient::RegisterPrefs(registry); |
355 policy::BrowserPolicyConnectorChromeOS::RegisterPrefs(registry); | 350 policy::BrowserPolicyConnectorChromeOS::RegisterPrefs(registry); |
356 policy::ConsumerManagementService::RegisterPrefs(registry); | 351 policy::ConsumerManagementService::RegisterPrefs(registry); |
357 policy::DeviceCloudPolicyManagerChromeOS::RegisterPrefs(registry); | 352 policy::DeviceCloudPolicyManagerChromeOS::RegisterPrefs(registry); |
358 policy::DeviceStatusCollector::RegisterPrefs(registry); | 353 policy::DeviceStatusCollector::RegisterPrefs(registry); |
359 policy::PolicyCertServiceFactory::RegisterPrefs(registry); | 354 policy::PolicyCertServiceFactory::RegisterPrefs(registry); |
360 #endif | 355 #endif |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 host_zoom_dictionary, false /* sanitize_partition_host_zoom_levels */); | 680 host_zoom_dictionary, false /* sanitize_partition_host_zoom_levels */); |
686 | 681 |
687 // We're done migrating the profile per-host zoom level values, so we clear | 682 // We're done migrating the profile per-host zoom level values, so we clear |
688 // them all. | 683 // them all. |
689 DictionaryPrefUpdate host_zoom_dictionary_update( | 684 DictionaryPrefUpdate host_zoom_dictionary_update( |
690 prefs, prefs::kPerHostZoomLevelsDeprecated); | 685 prefs, prefs::kPerHostZoomLevelsDeprecated); |
691 host_zoom_dictionary_update->Clear(); | 686 host_zoom_dictionary_update->Clear(); |
692 } | 687 } |
693 | 688 |
694 } // namespace chrome | 689 } // namespace chrome |
OLD | NEW |