summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--android_webview/DEPS1
-rw-r--r--android_webview/browser/aw_browser_context.cc6
-rw-r--r--android_webview/browser/aw_metrics_service_client.cc2
-rw-r--r--android_webview/browser/aw_pref_store.h4
-rw-r--r--android_webview/browser/net/aw_url_request_context_getter.cc2
-rw-r--r--android_webview/browser/net/aw_url_request_context_getter.h2
-rw-r--r--android_webview/native/aw_autofill_client.cc6
-rw-r--r--android_webview/native/aw_autofill_client.h4
-rw-r--r--ash/system/DEPS1
-rw-r--r--ash/system/chromeos/power/power_event_observer.cc2
-rw-r--r--base/prefs/DEPS4
-rw-r--r--base/prefs/base_prefs_export.h7
-rw-r--r--base/prefs/default_pref_store.h7
-rw-r--r--base/prefs/json_pref_store.h7
-rw-r--r--base/prefs/mock_pref_change_callback.h7
-rw-r--r--base/prefs/overlay_user_pref_store.h7
-rw-r--r--base/prefs/persistent_pref_store.h7
-rw-r--r--base/prefs/pref_change_registrar.h7
-rw-r--r--base/prefs/pref_filter.h7
-rw-r--r--base/prefs/pref_member.h7
-rw-r--r--base/prefs/pref_notifier.h7
-rw-r--r--base/prefs/pref_notifier_impl.h7
-rw-r--r--base/prefs/pref_observer.h7
-rw-r--r--base/prefs/pref_registry.h7
-rw-r--r--base/prefs/pref_registry_simple.h7
-rw-r--r--base/prefs/pref_service.h7
-rw-r--r--base/prefs/pref_service_factory.h7
-rw-r--r--base/prefs/pref_store.h7
-rw-r--r--base/prefs/pref_store_observer_mock.h7
-rw-r--r--base/prefs/pref_value_map.h7
-rw-r--r--base/prefs/pref_value_store.h7
-rw-r--r--base/prefs/scoped_user_pref_update.h7
-rw-r--r--base/prefs/testing_pref_service.h7
-rw-r--r--base/prefs/testing_pref_store.h7
-rw-r--r--base/prefs/value_map_pref_store.h7
-rw-r--r--base/prefs/writeable_pref_store.h7
-rw-r--r--chrome/browser/chromeos/arc/arc_auth_service.cc2
-rw-r--r--chrome/browser/chromeos/arc/arc_auth_service.h2
-rw-r--r--chrome/browser/chromeos/arc/arc_auth_service_unittest.cc2
-rw-r--r--chrome/browser/chromeos/login/wizard_controller_browsertest.cc2
-rw-r--r--chrome/browser/prefs/profile_pref_store_manager_unittest.cc4
-rw-r--r--chrome/browser/ui/app_list/app_list_service_unittest.cc2
-rw-r--r--chromecast/browser/DEPS1
-rw-r--r--chromecast/browser/android/cast_window_manager.cc2
-rw-r--r--chromecast/browser/cast_browser_main_parts.cc2
-rw-r--r--chromecast/browser/cast_browser_process.cc2
-rw-r--r--chromecast/browser/devtools/remote_debugging_server.h2
-rw-r--r--chromecast/browser/metrics/cast_metrics_service_client.cc4
-rw-r--r--chromecast/browser/metrics/cast_stability_metrics_provider.cc4
-rw-r--r--chromecast/browser/pref_service_helper.cc10
-rw-r--r--chromecast/browser/pref_service_helper.h2
-rw-r--r--chromeos/DEPS1
-rw-r--r--chromeos/audio/audio_devices_pref_handler_impl.cc6
-rw-r--r--chromeos/audio/audio_devices_pref_handler_impl.h2
-rw-r--r--chromeos/audio/audio_devices_pref_handler_impl_unittest.cc2
-rw-r--r--chromeos/login/auth/login_performer.cc2
-rw-r--r--chromeos/timezone/timezone_resolver.cc4
-rw-r--r--components/autofill/core/browser/autocomplete_history_manager_unittest.cc2
-rw-r--r--components/autofill/core/browser/autofill_experiments.cc2
-rw-r--r--components/autofill/core/browser/autofill_manager.cc2
-rw-r--r--components/autofill/core/browser/autofill_manager_unittest.cc2
-rw-r--r--components/autofill/core/browser/autofill_metrics_unittest.cc2
-rw-r--r--components/autofill/core/browser/autofill_test_utils.cc8
-rw-r--r--components/autofill/core/browser/autofill_wallet_data_type_controller.cc2
-rw-r--r--components/autofill/core/browser/autofill_wallet_data_type_controller.h2
-rw-r--r--components/autofill/core/browser/options_util_unittest.cc4
-rw-r--r--components/autofill/core/browser/personal_data_manager.cc2
-rw-r--r--components/autofill/core/browser/personal_data_manager.h2
-rw-r--r--components/autofill/core/browser/personal_data_manager_unittest.cc2
-rw-r--r--components/autofill/core/browser/test_autofill_client.h2
-rw-r--r--components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc2
-rw-r--r--components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc4
-rw-r--r--components/bookmarks/DEPS1
-rw-r--r--components/bookmarks/browser/bookmark_expanded_state_tracker.cc2
-rw-r--r--components/bookmarks/browser/bookmark_expanded_state_tracker_unittest.cc4
-rw-r--r--components/bookmarks/browser/bookmark_utils.cc2
-rw-r--r--components/bookmarks/managed/managed_bookmarks_tracker.cc2
-rw-r--r--components/bookmarks/managed/managed_bookmarks_tracker.h2
-rw-r--r--components/bookmarks/managed/managed_bookmarks_tracker_unittest.cc4
-rw-r--r--components/browser_sync/browser/DEPS1
-rw-r--r--components/browser_sync/browser/profile_sync_components_factory_impl.cc2
-rw-r--r--components/browser_sync/browser/profile_sync_service.cc2
-rw-r--r--components/content_settings/DEPS1
-rw-r--r--components/content_settings/core/browser/content_settings_default_provider.cc6
-rw-r--r--components/content_settings/core/browser/content_settings_default_provider.h2
-rw-r--r--components/content_settings/core/browser/content_settings_policy_provider.cc2
-rw-r--r--components/content_settings/core/browser/content_settings_policy_provider.h2
-rw-r--r--components/content_settings/core/browser/content_settings_pref.cc2
-rw-r--r--components/content_settings/core/browser/content_settings_pref_provider.cc6
-rw-r--r--components/content_settings/core/browser/content_settings_pref_provider.h2
-rw-r--r--components/content_settings/core/browser/content_settings_registry_unittest.cc2
-rw-r--r--components/content_settings/core/browser/content_settings_usages_state.cc2
-rw-r--r--components/content_settings/core/browser/cookie_settings.cc2
-rw-r--r--components/content_settings/core/browser/cookie_settings.h2
-rw-r--r--components/content_settings/core/browser/host_content_settings_map.cc2
-rw-r--r--components/content_settings/core/browser/host_content_settings_map.h2
-rw-r--r--components/content_settings/core/browser/website_settings_info.cc2
-rw-r--r--components/content_settings/core/browser/website_settings_registry_unittest.cc2
-rw-r--r--components/cronet/DEPS1
-rw-r--r--components/cronet/android/cronet_data_reduction_proxy.cc8
-rw-r--r--components/cronet/android/cronet_in_memory_pref_store.h4
-rw-r--r--components/cronet/android/cronet_url_request_context_adapter.cc12
-rw-r--r--components/cronet/android/cronet_url_request_context_adapter.h2
-rw-r--r--components/data_reduction_proxy/DEPS1
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc2
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc4
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h4
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc6
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc2
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params_unittest.cc2
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats_unittest.cc2
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc2
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc4
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc6
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs_unittest.cc8
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc2
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc4
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h2
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc6
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h2
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc2
-rw-r--r--components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc4
-rw-r--r--components/dom_distiller/DEPS1
-rw-r--r--components/dom_distiller/core/distilled_page_prefs.cc2
-rw-r--r--components/drive/DEPS1
-rw-r--r--components/drive/change_list_loader_unittest.cc2
-rw-r--r--components/drive/directory_loader_unittest.cc2
-rw-r--r--components/drive/drive_test_util.cc4
-rw-r--r--components/drive/file_system.cc2
-rw-r--r--components/drive/file_system/operation_test_base.cc2
-rw-r--r--components/drive/file_system_core_util.cc2
-rw-r--r--components/drive/file_system_unittest.cc2
-rw-r--r--components/drive/job_scheduler.cc2
-rw-r--r--components/drive/job_scheduler_unittest.cc2
-rw-r--r--components/drive/sync_client_unittest.cc2
-rw-r--r--components/feedback/DEPS1
-rw-r--r--components/feedback/feedback_data_unittest.cc2
-rw-r--r--components/filesystem/DEPS1
-rw-r--r--components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc2
-rw-r--r--components/filesystem/public/cpp/prefs/filesystem_json_pref_store.h12
-rw-r--r--components/filesystem/public/cpp/prefs/pref_service_factory.cc12
-rw-r--r--components/filesystem/public/cpp/prefs/pref_service_factory.h2
-rw-r--r--components/flags_ui/DEPS1
-rw-r--r--components/flags_ui/flags_state_unittest.cc4
-rw-r--r--components/flags_ui/pref_service_flags_storage.cc6
-rw-r--r--components/gcm_driver/DEPS1
-rw-r--r--components/gcm_driver/gcm_channel_status_syncer.cc4
-rw-r--r--components/gcm_driver/gcm_driver_desktop_unittest.cc4
-rw-r--r--components/gcm_driver/gcm_profile_service.cc2
-rw-r--r--components/google/DEPS1
-rw-r--r--components/google/core/browser/google_url_tracker.cc2
-rw-r--r--components/google/core/browser/google_url_tracker_unittest.cc6
-rw-r--r--components/history/DEPS1
-rw-r--r--components/history/core/browser/expire_history_backend_unittest.cc4
-rw-r--r--components/history/core/browser/history_backend_unittest.cc2
-rw-r--r--components/history/core/browser/top_sites_impl.cc6
-rw-r--r--components/history/core/browser/top_sites_impl_unittest.cc4
-rw-r--r--components/history/core/browser/typed_url_data_type_controller.cc2
-rw-r--r--components/history/core/browser/typed_url_data_type_controller.h2
-rw-r--r--components/invalidation/DEPS1
-rw-r--r--components/invalidation/impl/invalidator_storage.cc4
-rw-r--r--components/invalidation/impl/invalidator_storage_unittest.cc2
-rw-r--r--components/invalidation/impl/ticl_profile_settings_provider.cc2
-rw-r--r--components/invalidation/impl/ticl_profile_settings_provider.h2
-rw-r--r--components/invalidation/impl/ticl_profile_settings_provider_unittest.cc2
-rw-r--r--components/keyed_service/DEPS1
-rw-r--r--components/keyed_service/core/keyed_service_base_factory.cc2
-rw-r--r--components/metrics/clean_exit_beacon.cc2
-rw-r--r--components/metrics/cloned_install_detector.cc4
-rw-r--r--components/metrics/cloned_install_detector_unittest.cc2
-rw-r--r--components/metrics/daily_event.cc4
-rw-r--r--components/metrics/daily_event_unittest.cc2
-rw-r--r--components/metrics/metrics_log.cc4
-rw-r--r--components/prefs/BUILD.gn33
-rw-r--r--components/prefs/base_prefs_export.h22
-rw-r--r--components/prefs/default_pref_store.h8
-rw-r--r--components/prefs/json_pref_store.h10
-rw-r--r--components/prefs/mock_pref_change_callback.h6
-rw-r--r--components/prefs/overlay_user_pref_store.h8
-rw-r--r--components/prefs/persistent_pref_store.h8
-rw-r--r--components/prefs/pref_change_registrar.h8
-rw-r--r--components/prefs/pref_filter.h8
-rw-r--r--components/prefs/pref_member.h46
-rw-r--r--components/prefs/pref_notifier.h6
-rw-r--r--components/prefs/pref_notifier_impl.h8
-rw-r--r--components/prefs/pref_observer.h6
-rw-r--r--components/prefs/pref_registry.h9
-rw-r--r--components/prefs/pref_registry_simple.h8
-rw-r--r--components/prefs/pref_service.h10
-rw-r--r--components/prefs/pref_service_factory.cc4
-rw-r--r--components/prefs/pref_service_factory.h12
-rw-r--r--components/prefs/pref_service_unittest.cc2
-rw-r--r--components/prefs/pref_store.h10
-rw-r--r--components/prefs/pref_store_observer_mock.h6
-rw-r--r--components/prefs/pref_value_map.h8
-rw-r--r--components/prefs/pref_value_store.h8
-rw-r--r--components/prefs/prefs.gyp2
-rw-r--r--components/prefs/scoped_user_pref_update.h9
-rw-r--r--components/prefs/testing_pref_service.h6
-rw-r--r--components/prefs/testing_pref_store.h6
-rw-r--r--components/prefs/value_map_pref_store.h8
-rw-r--r--components/prefs/writeable_pref_store.h8
-rw-r--r--components/syncable_prefs/pref_service_syncable_factory.h2
-rw-r--r--extensions/DEPS1
-rw-r--r--extensions/browser/app_window/app_window.cc2
-rw-r--r--extensions/browser/app_window/app_window_geometry_cache_unittest.cc8
-rw-r--r--extensions/browser/extension_pref_store.h2
-rw-r--r--extensions/browser/extension_pref_value_map.cc2
-rw-r--r--extensions/browser/extension_pref_value_map_unittest.cc2
-rw-r--r--extensions/browser/extension_prefs.cc2
-rw-r--r--extensions/browser/extension_prefs.h2
-rw-r--r--extensions/browser/extension_prefs_factory.cc2
-rw-r--r--extensions/browser/lazy_background_task_queue_unittest.cc2
-rw-r--r--extensions/shell/browser/shell_browser_main_parts.cc2
-rw-r--r--extensions/shell/browser/shell_prefs.cc14
-rw-r--r--extensions/shell/browser/shell_prefs_unittest.cc2
-rw-r--r--ios/chrome/browser/DEPS1
-rw-r--r--ios/chrome/browser/application_context_impl.cc4
-rw-r--r--ios/chrome/browser/autocomplete/autocomplete_provider_client_impl.cc2
-rw-r--r--ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc2
-rw-r--r--ios/chrome/browser/autocomplete/shortcuts_backend_factory.cc2
-rw-r--r--ios/chrome/browser/bookmarks/bookmark_model_factory.cc2
-rw-r--r--ios/chrome/browser/bookmarks/bookmarks_utils.cc2
-rw-r--r--ios/chrome/browser/browser_state/browser_state_info_cache.cc4
-rw-r--r--ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.cc6
-rw-r--r--ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.h2
-rw-r--r--ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc2
-rw-r--r--ios/chrome/browser/browser_state/chrome_browser_state_io_data.h2
-rw-r--r--ios/chrome/browser/browser_state/off_the_record_chrome_browser_state_io_data.mm2
-rw-r--r--ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.cc2
-rw-r--r--ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h2
-rw-r--r--ios/chrome/browser/content_settings/host_content_settings_map_factory.cc2
-rw-r--r--ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_proxy_io_data.cc2
-rw-r--r--ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_proxy_settings.cc4
-rw-r--r--ios/chrome/browser/geolocation/omnibox_geolocation_local_state.mm4
-rw-r--r--ios/chrome/browser/geolocation/omnibox_geolocation_local_state_unittest.mm2
-rw-r--r--ios/chrome/browser/google/google_url_tracker_factory.cc2
-rw-r--r--ios/chrome/browser/history/history_service_factory.cc2
-rw-r--r--ios/chrome/browser/history/web_history_service_factory.cc2
-rw-r--r--ios/chrome/browser/interstitials/ios_security_interstitial_page.mm2
-rw-r--r--ios/chrome/browser/invalidation/ios_chrome_profile_invalidation_provider_factory.cc2
-rw-r--r--ios/chrome/browser/ios_chrome_io_thread.cc2
-rw-r--r--ios/chrome/browser/ios_chrome_io_thread.h2
-rw-r--r--ios/chrome/browser/ios_chrome_main_parts.mm4
-rw-r--r--ios/chrome/browser/memory/memory_debugger_manager.mm6
-rw-r--r--ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor.cc2
-rw-r--r--ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor_unittest.cc4
-rw-r--r--ios/chrome/browser/metrics/ios_chrome_metrics_service_client.cc4
-rw-r--r--ios/chrome/browser/metrics/ios_chrome_metrics_services_manager_client.cc2
-rw-r--r--ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider_unittest.cc6
-rw-r--r--ios/chrome/browser/metrics/mobile_session_shutdown_metrics_provider_unittest.mm2
-rw-r--r--ios/chrome/browser/net/http_server_properties_manager_factory.cc4
-rw-r--r--ios/chrome/browser/net/ios_chrome_http_user_agent_settings.cc2
-rw-r--r--ios/chrome/browser/net/ios_chrome_http_user_agent_settings.h2
-rw-r--r--ios/chrome/browser/net/ios_chrome_network_delegate.cc4
-rw-r--r--ios/chrome/browser/passwords/credential_manager.h2
-rw-r--r--ios/chrome/browser/passwords/ios_chrome_password_manager_client.h2
-rw-r--r--ios/chrome/browser/prefs/browser_prefs.mm2
-rw-r--r--ios/chrome/browser/prefs/ios_chrome_pref_service_factory.cc8
-rw-r--r--ios/chrome/browser/prefs/pref_observer_bridge.mm2
-rw-r--r--ios/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc2
-rw-r--r--ios/chrome/browser/safe_browsing/safe_browsing_service.cc4
-rw-r--r--ios/chrome/browser/safe_browsing/ui_manager.cc2
-rw-r--r--ios/chrome/browser/search_engines/search_engines_util.cc2
-rw-r--r--ios/chrome/browser/signin/browser_state_data_remover.mm2
-rw-r--r--ios/chrome/browser/signin/signin_client_impl.cc2
-rw-r--r--ios/chrome/browser/signin/signin_manager_factory.cc2
-rw-r--r--ios/chrome/browser/ssl/ios_ssl_blocking_page.cc2
-rw-r--r--ios/chrome/browser/sync/sync_setup_service.cc2
-rw-r--r--ios/chrome/browser/translate/chrome_ios_translate_client.mm2
-rw-r--r--ios/chrome/browser/translate/translate_accept_languages_factory.cc2
-rw-r--r--ios/chrome/browser/ui/autofill/autofill_client_ios.mm2
-rw-r--r--ios/chrome/browser/ui/webui/flags_ui.cc4
-rw-r--r--ios/chrome/browser/ui/webui/history/browsing_history_handler.cc2
-rw-r--r--ios/chrome/test/DEPS1
-rw-r--r--ios/chrome/test/ios_chrome_scoped_testing_local_state.h2
-rw-r--r--ios/crnet/DEPS1
-rw-r--r--ios/crnet/crnet_environment.mm4
-rw-r--r--ios/crnet/sdch_owner_pref_storage.cc2
-rw-r--r--ios/crnet/sdch_owner_pref_storage.h2
-rw-r--r--ios/web/DEPS1
-rw-r--r--ios/web/web_state/ui/crw_web_controller.mm2
-rw-r--r--mash/DEPS1
-rw-r--r--mash/wallpaper/wallpaper.cc2
-rw-r--r--third_party/libaddressinput/chromium/DEPS3
-rw-r--r--third_party/libaddressinput/chromium/chrome_storage_impl.cc2
-rw-r--r--third_party/libaddressinput/chromium/chrome_storage_impl.h2
-rw-r--r--third_party/libaddressinput/chromium/chrome_storage_impl_unittest.cc2
288 files changed, 656 insertions, 470 deletions
diff --git a/android_webview/DEPS b/android_webview/DEPS
index cd20d21..b53964d 100644
--- a/android_webview/DEPS
+++ b/android_webview/DEPS
@@ -10,7 +10,6 @@ include_rules = [
"+components/data_reduction_proxy",
"+components/devtools_discovery",
"+components/metrics",
- "+components/prefs",
"+content/public/common",
"+crypto",
"+gpu",
diff --git a/android_webview/browser/aw_browser_context.cc b/android_webview/browser/aw_browser_context.cc
index a5e985f..0003e2e 100644
--- a/android_webview/browser/aw_browser_context.cc
+++ b/android_webview/browser/aw_browser_context.cc
@@ -20,6 +20,8 @@
#include "base/base_paths_android.h"
#include "base/bind.h"
#include "base/path_service.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/pref_service_factory.h"
#include "components/autofill/core/common/autofill_pref_names.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h"
@@ -33,8 +35,6 @@
#include "components/policy/core/browser/configuration_policy_pref_store.h"
#include "components/policy/core/browser/url_blacklist_manager.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/pref_service_factory.h"
#include "components/url_formatter/url_fixer.h"
#include "components/user_prefs/user_prefs.h"
#include "components/visitedlink/browser/visitedlink_master.h"
@@ -347,7 +347,7 @@ void AwBrowserContext::InitUserPrefService() {
metrics::MetricsService::RegisterPrefs(pref_registry);
- PrefServiceFactory pref_service_factory;
+ base::PrefServiceFactory pref_service_factory;
pref_service_factory.set_user_prefs(make_scoped_refptr(new AwPrefStore()));
pref_service_factory.set_managed_prefs(
make_scoped_refptr(new policy::ConfigurationPolicyPrefStore(
diff --git a/android_webview/browser/aw_metrics_service_client.cc b/android_webview/browser/aw_metrics_service_client.cc
index 26d465f..eb07828 100644
--- a/android_webview/browser/aw_metrics_service_client.cc
+++ b/android_webview/browser/aw_metrics_service_client.cc
@@ -9,6 +9,7 @@
#include "base/files/file_util.h"
#include "base/guid.h"
#include "base/i18n/rtl.h"
+#include "base/prefs/pref_service.h"
#include "components/metrics/call_stack_profile_metrics_provider.h"
#include "components/metrics/gpu/gpu_metrics_provider.h"
#include "components/metrics/metrics_pref_names.h"
@@ -18,7 +19,6 @@
#include "components/metrics/profiler/profiler_metrics_provider.h"
#include "components/metrics/ui/screen_info_metrics_provider.h"
#include "components/metrics/url_constants.h"
-#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_thread.h"
namespace android_webview {
diff --git a/android_webview/browser/aw_pref_store.h b/android_webview/browser/aw_pref_store.h
index 6607e25..b3fd021 100644
--- a/android_webview/browser/aw_pref_store.h
+++ b/android_webview/browser/aw_pref_store.h
@@ -12,8 +12,8 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/observer_list.h"
-#include "components/prefs/persistent_pref_store.h"
-#include "components/prefs/pref_value_map.h"
+#include "base/prefs/persistent_pref_store.h"
+#include "base/prefs/pref_value_map.h"
// A light-weight prefstore implementation that keeps preferences
// in a memory backed store. This is not a persistent prefstore -- we
diff --git a/android_webview/browser/net/aw_url_request_context_getter.cc b/android_webview/browser/net/aw_url_request_context_getter.cc
index 7b54fa9..7ab710f 100644
--- a/android_webview/browser/net/aw_url_request_context_getter.cc
+++ b/android_webview/browser/net/aw_url_request_context_getter.cc
@@ -19,13 +19,13 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/threading/sequenced_worker_pool.h"
#include "base/threading/worker_pool.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h"
-#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/cookie_store_factory.h"
diff --git a/android_webview/browser/net/aw_url_request_context_getter.h b/android_webview/browser/net/aw_url_request_context_getter.h
index 46c2146..bdafa05 100644
--- a/android_webview/browser/net/aw_url_request_context_getter.h
+++ b/android_webview/browser/net/aw_url_request_context_getter.h
@@ -9,7 +9,7 @@
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
-#include "components/prefs/pref_member.h"
+#include "base/prefs/pref_member.h"
#include "content/public/browser/content_browser_client.h"
#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_job_factory.h"
diff --git a/android_webview/native/aw_autofill_client.cc b/android_webview/native/aw_autofill_client.cc
index e70afc2..cb7b646 100644
--- a/android_webview/native/aw_autofill_client.cc
+++ b/android_webview/native/aw_autofill_client.cc
@@ -13,13 +13,13 @@
#include "base/android/jni_string.h"
#include "base/android/scoped_java_ref.h"
#include "base/logging.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/pref_service_factory.h"
#include "components/autofill/core/browser/autofill_popup_delegate.h"
#include "components/autofill/core/browser/suggestion.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "components/autofill/core/common/autofill_pref_names.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/pref_service_factory.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"
diff --git a/android_webview/native/aw_autofill_client.h b/android_webview/native/aw_autofill_client.h
index da8a685..78cfa96 100644
--- a/android_webview/native/aw_autofill_client.h
+++ b/android_webview/native/aw_autofill_client.h
@@ -11,9 +11,9 @@
#include "base/android/jni_weak_ref.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service_factory.h"
#include "components/autofill/core/browser/autofill_client.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service_factory.h"
#include "content/public/browser/web_contents_user_data.h"
namespace autofill {
diff --git a/ash/system/DEPS b/ash/system/DEPS
index 246c8e1..1121c69 100644
--- a/ash/system/DEPS
+++ b/ash/system/DEPS
@@ -1,5 +1,4 @@
include_rules = [
"-chromeos",
- "+components/prefs",
"+components/signin/core/account_id",
]
diff --git a/ash/system/chromeos/power/power_event_observer.cc b/ash/system/chromeos/power/power_event_observer.cc
index 284e09f..3dad764 100644
--- a/ash/system/chromeos/power/power_event_observer.cc
+++ b/ash/system/chromeos/power/power_event_observer.cc
@@ -8,8 +8,8 @@
#include "ash/shell.h"
#include "ash/system/tray/system_tray_notifier.h"
#include "ash/wm/power_button_controller.h"
+#include "base/prefs/pref_service.h"
#include "chromeos/dbus/dbus_thread_manager.h"
-#include "components/prefs/pref_service.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
#include "ui/base/user_activity/user_activity_detector.h"
diff --git a/base/prefs/DEPS b/base/prefs/DEPS
new file mode 100644
index 0000000..2edd44e
--- /dev/null
+++ b/base/prefs/DEPS
@@ -0,0 +1,4 @@
+# TODO(brettw) remove this when prefs is completely moved to components.
+include_rules = [
+ "+components/prefs",
+]
diff --git a/base/prefs/base_prefs_export.h b/base/prefs/base_prefs_export.h
new file mode 100644
index 0000000..477e1aa
--- /dev/null
+++ b/base/prefs/base_prefs_export.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/base_prefs_export.h"
diff --git a/base/prefs/default_pref_store.h b/base/prefs/default_pref_store.h
new file mode 100644
index 0000000..e590bf8
--- /dev/null
+++ b/base/prefs/default_pref_store.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/default_pref_store.h"
diff --git a/base/prefs/json_pref_store.h b/base/prefs/json_pref_store.h
new file mode 100644
index 0000000..247102f
--- /dev/null
+++ b/base/prefs/json_pref_store.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/json_pref_store.h"
diff --git a/base/prefs/mock_pref_change_callback.h b/base/prefs/mock_pref_change_callback.h
new file mode 100644
index 0000000..90ad294
--- /dev/null
+++ b/base/prefs/mock_pref_change_callback.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/mock_pref_change_callback.h"
diff --git a/base/prefs/overlay_user_pref_store.h b/base/prefs/overlay_user_pref_store.h
new file mode 100644
index 0000000..594c501
--- /dev/null
+++ b/base/prefs/overlay_user_pref_store.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/overlay_user_pref_store.h"
diff --git a/base/prefs/persistent_pref_store.h b/base/prefs/persistent_pref_store.h
new file mode 100644
index 0000000..a0fcf68
--- /dev/null
+++ b/base/prefs/persistent_pref_store.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/persistent_pref_store.h"
diff --git a/base/prefs/pref_change_registrar.h b/base/prefs/pref_change_registrar.h
new file mode 100644
index 0000000..517b63f
--- /dev/null
+++ b/base/prefs/pref_change_registrar.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/pref_change_registrar.h"
diff --git a/base/prefs/pref_filter.h b/base/prefs/pref_filter.h
new file mode 100644
index 0000000..6ed06bc
--- /dev/null
+++ b/base/prefs/pref_filter.h
@@ -0,0 +1,7 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/pref_filter.h"
diff --git a/base/prefs/pref_member.h b/base/prefs/pref_member.h
new file mode 100644
index 0000000..ff90e5e
--- /dev/null
+++ b/base/prefs/pref_member.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/pref_member.h"
diff --git a/base/prefs/pref_notifier.h b/base/prefs/pref_notifier.h
new file mode 100644
index 0000000..d99f5b8
--- /dev/null
+++ b/base/prefs/pref_notifier.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/pref_notifier.h"
diff --git a/base/prefs/pref_notifier_impl.h b/base/prefs/pref_notifier_impl.h
new file mode 100644
index 0000000..f47cc3e
--- /dev/null
+++ b/base/prefs/pref_notifier_impl.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/pref_notifier_impl.h"
diff --git a/base/prefs/pref_observer.h b/base/prefs/pref_observer.h
new file mode 100644
index 0000000..df5d1af
--- /dev/null
+++ b/base/prefs/pref_observer.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/pref_observer.h"
diff --git a/base/prefs/pref_registry.h b/base/prefs/pref_registry.h
new file mode 100644
index 0000000..94126d1
--- /dev/null
+++ b/base/prefs/pref_registry.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/pref_registry.h"
diff --git a/base/prefs/pref_registry_simple.h b/base/prefs/pref_registry_simple.h
new file mode 100644
index 0000000..0f157a2
--- /dev/null
+++ b/base/prefs/pref_registry_simple.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/pref_registry_simple.h"
diff --git a/base/prefs/pref_service.h b/base/prefs/pref_service.h
new file mode 100644
index 0000000..aced2f0
--- /dev/null
+++ b/base/prefs/pref_service.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/pref_service.h"
diff --git a/base/prefs/pref_service_factory.h b/base/prefs/pref_service_factory.h
new file mode 100644
index 0000000..3bc4932
--- /dev/null
+++ b/base/prefs/pref_service_factory.h
@@ -0,0 +1,7 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/pref_service_factory.h"
diff --git a/base/prefs/pref_store.h b/base/prefs/pref_store.h
new file mode 100644
index 0000000..c1c6583
--- /dev/null
+++ b/base/prefs/pref_store.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/pref_store.h"
diff --git a/base/prefs/pref_store_observer_mock.h b/base/prefs/pref_store_observer_mock.h
new file mode 100644
index 0000000..be8e4d5
--- /dev/null
+++ b/base/prefs/pref_store_observer_mock.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/pref_store_observer_mock.h"
diff --git a/base/prefs/pref_value_map.h b/base/prefs/pref_value_map.h
new file mode 100644
index 0000000..e1ec94a
--- /dev/null
+++ b/base/prefs/pref_value_map.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/pref_value_map.h"
diff --git a/base/prefs/pref_value_store.h b/base/prefs/pref_value_store.h
new file mode 100644
index 0000000..de10c56
--- /dev/null
+++ b/base/prefs/pref_value_store.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/pref_value_store.h"
diff --git a/base/prefs/scoped_user_pref_update.h b/base/prefs/scoped_user_pref_update.h
new file mode 100644
index 0000000..ce03c6a
--- /dev/null
+++ b/base/prefs/scoped_user_pref_update.h
@@ -0,0 +1,7 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/scoped_user_pref_update.h"
diff --git a/base/prefs/testing_pref_service.h b/base/prefs/testing_pref_service.h
new file mode 100644
index 0000000..c60b89e
--- /dev/null
+++ b/base/prefs/testing_pref_service.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/testing_pref_service.h"
diff --git a/base/prefs/testing_pref_store.h b/base/prefs/testing_pref_store.h
new file mode 100644
index 0000000..297aa11
--- /dev/null
+++ b/base/prefs/testing_pref_store.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/testing_pref_store.h"
diff --git a/base/prefs/value_map_pref_store.h b/base/prefs/value_map_pref_store.h
new file mode 100644
index 0000000..4373ff7
--- /dev/null
+++ b/base/prefs/value_map_pref_store.h
@@ -0,0 +1,7 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/value_map_pref_store.h"
diff --git a/base/prefs/writeable_pref_store.h b/base/prefs/writeable_pref_store.h
new file mode 100644
index 0000000..69bd2cb
--- /dev/null
+++ b/base/prefs/writeable_pref_store.h
@@ -0,0 +1,7 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// TODO(brettw) remove this forwarding header when prefs is completely moved to
+// components.
+#include "components/prefs/writeable_pref_store.h"
diff --git a/chrome/browser/chromeos/arc/arc_auth_service.cc b/chrome/browser/chromeos/arc/arc_auth_service.cc
index 82ae12c..55f2baf 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.cc
+++ b/chrome/browser/chromeos/arc/arc_auth_service.cc
@@ -6,12 +6,12 @@
#include <utility>
+#include "base/prefs/pref_service.h"
#include "chrome/browser/chromeos/arc/arc_auth_ui.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/pref_names.h"
#include "components/arc/arc_bridge_service.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
namespace arc {
diff --git a/chrome/browser/chromeos/arc/arc_auth_service.h b/chrome/browser/chromeos/arc/arc_auth_service.h
index 1e3eea4..37f70b4e 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.h
+++ b/chrome/browser/chromeos/arc/arc_auth_service.h
@@ -9,13 +9,13 @@
#include "base/macros.h"
#include "base/observer_list.h"
+#include "base/prefs/pref_change_registrar.h"
#include "base/threading/thread_checker.h"
#include "chrome/browser/chromeos/arc/arc_auth_ui.h"
#include "components/arc/arc_bridge_service.h"
#include "components/arc/arc_service.h"
#include "components/arc/auth/arc_auth_fetcher.h"
#include "components/arc/common/auth.mojom.h"
-#include "components/prefs/pref_change_registrar.h"
#include "mojo/public/cpp/bindings/binding.h"
class PrefService;
diff --git a/chrome/browser/chromeos/arc/arc_auth_service_unittest.cc b/chrome/browser/chromeos/arc/arc_auth_service_unittest.cc
index 22b329c1..822b7fa 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service_unittest.cc
+++ b/chrome/browser/chromeos/arc/arc_auth_service_unittest.cc
@@ -10,6 +10,7 @@
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/macros.h"
+#include "base/prefs/pref_service.h"
#include "base/run_loop.h"
#include "chrome/browser/chromeos/arc/arc_auth_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -18,7 +19,6 @@
#include "components/arc/arc_bridge_service.h"
#include "components/arc/auth/arc_auth_fetcher.h"
#include "components/arc/test/fake_arc_bridge_service.h"
-#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "google_apis/gaia/gaia_constants.h"
diff --git a/chrome/browser/chromeos/login/wizard_controller_browsertest.cc b/chrome/browser/chromeos/login/wizard_controller_browsertest.cc
index f447b91..01ec241 100644
--- a/chrome/browser/chromeos/login/wizard_controller_browsertest.cc
+++ b/chrome/browser/chromeos/login/wizard_controller_browsertest.cc
@@ -907,7 +907,7 @@ class WizardControllerBrokenLocalStateTest : public WizardControllerTest {
}
void SetUpOnMainThread() override {
- PrefServiceFactory factory;
+ base::PrefServiceFactory factory;
factory.set_user_prefs(make_scoped_refptr(new PrefStoreStub()));
local_state_ = factory.Create(new PrefRegistrySimple());
WizardController::set_local_state_for_testing(local_state_.get());
diff --git a/chrome/browser/prefs/profile_pref_store_manager_unittest.cc b/chrome/browser/prefs/profile_pref_store_manager_unittest.cc
index bfd5e36..0d83b65 100644
--- a/chrome/browser/prefs/profile_pref_store_manager_unittest.cc
+++ b/chrome/browser/prefs/profile_pref_store_manager_unittest.cc
@@ -144,7 +144,7 @@ class ProfilePrefStoreManagerTest : public testing::Test {
void VerifyResetRecorded(bool reset_expected) {
EXPECT_EQ(reset_expected, reset_recorded_);
- PrefServiceFactory pref_service_factory;
+ base::PrefServiceFactory pref_service_factory;
pref_service_factory.set_user_prefs(pref_store_);
scoped_ptr<PrefService> pref_service(
@@ -158,7 +158,7 @@ class ProfilePrefStoreManagerTest : public testing::Test {
void ClearResetRecorded() {
reset_recorded_ = false;
- PrefServiceFactory pref_service_factory;
+ base::PrefServiceFactory pref_service_factory;
pref_service_factory.set_user_prefs(pref_store_);
scoped_ptr<PrefService> pref_service(
diff --git a/chrome/browser/ui/app_list/app_list_service_unittest.cc b/chrome/browser/ui/app_list/app_list_service_unittest.cc
index 2e8f039e..0683b38 100644
--- a/chrome/browser/ui/app_list/app_list_service_unittest.cc
+++ b/chrome/browser/ui/app_list/app_list_service_unittest.cc
@@ -100,7 +100,7 @@ class AppListServiceUnitTest : public testing::Test {
AppListService::RegisterPrefs(pref_registry);
profiles::RegisterPrefs(pref_registry);
- PrefServiceFactory factory;
+ base::PrefServiceFactory factory;
factory.set_user_prefs(make_scoped_refptr(new TestingPrefStore));
local_state_ = factory.Create(pref_registry);
diff --git a/chromecast/browser/DEPS b/chromecast/browser/DEPS
index c983df0..c57cc05 100644
--- a/chromecast/browser/DEPS
+++ b/chromecast/browser/DEPS
@@ -9,7 +9,6 @@ include_rules = [
"+components/devtools_http_handler",
"+components/external_video_surface",
"+components/network_hints/browser",
- "+components/prefs",
"+content/public/browser",
"+gin/v8_initializer.h",
"+gpu/command_buffer/service/gpu_switches.h",
diff --git a/chromecast/browser/android/cast_window_manager.cc b/chromecast/browser/android/cast_window_manager.cc
index a2ba453..7a0c51f 100644
--- a/chromecast/browser/android/cast_window_manager.cc
+++ b/chromecast/browser/android/cast_window_manager.cc
@@ -11,13 +11,13 @@
#include "base/android/scoped_java_ref.h"
#include "base/bind.h"
#include "base/lazy_instance.h"
+#include "base/prefs/pref_service.h"
#include "chromecast/base/pref_names.h"
#include "chromecast/browser/android/cast_window_android.h"
#include "chromecast/browser/cast_browser_context.h"
#include "chromecast/browser/cast_browser_main_parts.h"
#include "chromecast/browser/cast_browser_process.h"
#include "chromecast/browser/cast_content_browser_client.h"
-#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/web_contents.h"
#include "ipc/ipc_channel.h"
diff --git a/chromecast/browser/cast_browser_main_parts.cc b/chromecast/browser/cast_browser_main_parts.cc
index 8c29892..e67b3d2 100644
--- a/chromecast/browser/cast_browser_main_parts.cc
+++ b/chromecast/browser/cast_browser_main_parts.cc
@@ -14,6 +14,7 @@
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
+#include "base/prefs/pref_registry_simple.h"
#include "base/run_loop.h"
#include "base/thread_task_runner_handle.h"
#include "build/build_config.h"
@@ -42,7 +43,6 @@
#include "chromecast/public/cast_media_shlib.h"
#include "chromecast/public/cast_sys_info.h"
#include "chromecast/service/cast_service.h"
-#include "components/prefs/pref_registry_simple.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_security_policy.h"
#include "content/public/browser/gpu_data_manager.h"
diff --git a/chromecast/browser/cast_browser_process.cc b/chromecast/browser/cast_browser_process.cc
index 3f42342..747bc35 100644
--- a/chromecast/browser/cast_browser_process.cc
+++ b/chromecast/browser/cast_browser_process.cc
@@ -7,6 +7,7 @@
#include <utility>
#include "base/logging.h"
+#include "base/prefs/pref_service.h"
#include "build/build_config.h"
#include "chromecast/base/metrics/cast_metrics_helper.h"
#include "chromecast/browser/cast_browser_context.h"
@@ -15,7 +16,6 @@
#include "chromecast/browser/metrics/cast_metrics_service_client.h"
#include "chromecast/net/connectivity_checker.h"
#include "chromecast/service/cast_service.h"
-#include "components/prefs/pref_service.h"
#if defined(OS_ANDROID)
#include "components/crash/content/browser/crash_dump_manager_android.h"
diff --git a/chromecast/browser/devtools/remote_debugging_server.h b/chromecast/browser/devtools/remote_debugging_server.h
index 216655e..172e1fb 100644
--- a/chromecast/browser/devtools/remote_debugging_server.h
+++ b/chromecast/browser/devtools/remote_debugging_server.h
@@ -9,7 +9,7 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
-#include "components/prefs/pref_member.h"
+#include "base/prefs/pref_member.h"
namespace devtools_http_handler {
class DevToolsHttpHandler;
diff --git a/chromecast/browser/metrics/cast_metrics_service_client.cc b/chromecast/browser/metrics/cast_metrics_service_client.cc
index 0d6aed7..d3739c2 100644
--- a/chromecast/browser/metrics/cast_metrics_service_client.cc
+++ b/chromecast/browser/metrics/cast_metrics_service_client.cc
@@ -8,6 +8,8 @@
#include "base/guid.h"
#include "base/i18n/rtl.h"
#include "base/logging.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/thread_task_runner_handle.h"
#include "build/build_config.h"
@@ -30,8 +32,6 @@
#include "components/metrics/profiler/profiler_metrics_provider.h"
#include "components/metrics/ui/screen_info_metrics_provider.h"
#include "components/metrics/url_constants.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
#include "content/public/common/content_switches.h"
#if defined(OS_LINUX)
diff --git a/chromecast/browser/metrics/cast_stability_metrics_provider.cc b/chromecast/browser/metrics/cast_stability_metrics_provider.cc
index 3829d6b..ab21ac2 100644
--- a/chromecast/browser/metrics/cast_stability_metrics_provider.cc
+++ b/chromecast/browser/metrics/cast_stability_metrics_provider.cc
@@ -9,13 +9,13 @@
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/metrics/sparse_histogram.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
#include "chromecast/base/pref_names.h"
#include "chromecast/browser/cast_browser_process.h"
#include "chromecast/browser/metrics/cast_metrics_service_client.h"
#include "components/metrics/metrics_service.h"
#include "components/metrics/proto/system_profile.pb.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
#include "content/public/browser/child_process_data.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/notification_service.h"
diff --git a/chromecast/browser/pref_service_helper.cc b/chromecast/browser/pref_service_helper.cc
index a81bbf90..3265efb5 100644
--- a/chromecast/browser/pref_service_helper.cc
+++ b/chromecast/browser/pref_service_helper.cc
@@ -10,12 +10,12 @@
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
+#include "base/prefs/json_pref_store.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service_factory.h"
+#include "base/prefs/pref_store.h"
#include "chromecast/base/cast_paths.h"
#include "chromecast/base/pref_names.h"
-#include "components/prefs/json_pref_store.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service_factory.h"
-#include "components/prefs/pref_store.h"
#include "content/public/browser/browser_thread.h"
namespace chromecast {
@@ -56,7 +56,7 @@ scoped_ptr<PrefService> PrefServiceHelper::CreatePrefService(
RegisterPlatformPrefs(registry);
- PrefServiceFactory prefServiceFactory;
+ base::PrefServiceFactory prefServiceFactory;
scoped_refptr<base::SequencedTaskRunner> task_runner =
JsonPrefStore::GetTaskRunnerForFile(
config_path,
diff --git a/chromecast/browser/pref_service_helper.h b/chromecast/browser/pref_service_helper.h
index 1546cc8..cf41a92 100644
--- a/chromecast/browser/pref_service_helper.h
+++ b/chromecast/browser/pref_service_helper.h
@@ -12,9 +12,9 @@
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/pref_service.h"
#include "base/threading/sequenced_worker_pool.h"
#include "base/threading/thread_checker.h"
-#include "components/prefs/pref_service.h"
class PrefRegistrySimple;
diff --git a/chromeos/DEPS b/chromeos/DEPS
index f55569a..ecef880 100644
--- a/chromeos/DEPS
+++ b/chromeos/DEPS
@@ -3,7 +3,6 @@
# be kept as small as possible.
include_rules = [
"+components/device_event_log",
- "+components/prefs",
"+crypto",
"+net",
"+policy/proto",
diff --git a/chromeos/audio/audio_devices_pref_handler_impl.cc b/chromeos/audio/audio_devices_pref_handler_impl.cc
index 61b2fc5..3f95829 100644
--- a/chromeos/audio/audio_devices_pref_handler_impl.cc
+++ b/chromeos/audio/audio_devices_pref_handler_impl.cc
@@ -11,12 +11,12 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/logging.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/scoped_user_pref_update.h"
#include "base/strings/string_number_conversions.h"
#include "chromeos/audio/audio_device.h"
#include "chromeos/chromeos_pref_names.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/scoped_user_pref_update.h"
namespace {
diff --git a/chromeos/audio/audio_devices_pref_handler_impl.h b/chromeos/audio/audio_devices_pref_handler_impl.h
index 7e30e59..c2132db 100644
--- a/chromeos/audio/audio_devices_pref_handler_impl.h
+++ b/chromeos/audio/audio_devices_pref_handler_impl.h
@@ -9,10 +9,10 @@
#include "base/macros.h"
#include "base/observer_list.h"
+#include "base/prefs/pref_change_registrar.h"
#include "base/values.h"
#include "chromeos/audio/audio_devices_pref_handler.h"
#include "chromeos/chromeos_export.h"
-#include "components/prefs/pref_change_registrar.h"
class PrefRegistrySimple;
class PrefService;
diff --git a/chromeos/audio/audio_devices_pref_handler_impl_unittest.cc b/chromeos/audio/audio_devices_pref_handler_impl_unittest.cc
index c0ffe80..dea358f 100644
--- a/chromeos/audio/audio_devices_pref_handler_impl_unittest.cc
+++ b/chromeos/audio/audio_devices_pref_handler_impl_unittest.cc
@@ -8,11 +8,11 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/prefs/testing_pref_service.h"
#include "chromeos/audio/audio_device.h"
#include "chromeos/audio/audio_devices_pref_handler.h"
#include "chromeos/chromeos_pref_names.h"
#include "chromeos/dbus/audio_node.h"
-#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace chromeos {
diff --git a/chromeos/login/auth/login_performer.cc b/chromeos/login/auth/login_performer.cc
index 080084f..f5a1f76 100644
--- a/chromeos/login/auth/login_performer.cc
+++ b/chromeos/login/auth/login_performer.cc
@@ -10,6 +10,7 @@
#include "base/metrics/histogram.h"
#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include "base/threading/thread_restrictions.h"
#include "chromeos/dbus/dbus_thread_manager.h"
@@ -17,7 +18,6 @@
#include "chromeos/login/user_names.h"
#include "chromeos/login_event_recorder.h"
#include "chromeos/settings/cros_settings_names.h"
-#include "components/prefs/pref_service.h"
#include "components/signin/core/account_id/account_id.h"
#include "google_apis/gaia/gaia_auth_util.h"
#include "net/cookies/cookie_monster.h"
diff --git a/chromeos/timezone/timezone_resolver.cc b/chromeos/timezone/timezone_resolver.cc
index c6ebfb4..5938654 100644
--- a/chromeos/timezone/timezone_resolver.cc
+++ b/chromeos/timezone/timezone_resolver.cc
@@ -15,14 +15,14 @@
#include "base/macros.h"
#include "base/power_monitor/power_monitor.h"
#include "base/power_monitor/power_observer.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
#include "base/rand_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "chromeos/geolocation/geoposition.h"
#include "chromeos/geolocation/simple_geolocation_provider.h"
#include "chromeos/timezone/timezone_provider.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
namespace chromeos {
diff --git a/components/autofill/core/browser/autocomplete_history_manager_unittest.cc b/components/autofill/core/browser/autocomplete_history_manager_unittest.cc
index 601e574..095f13a 100644
--- a/components/autofill/core/browser/autocomplete_history_manager_unittest.cc
+++ b/components/autofill/core/browser/autocomplete_history_manager_unittest.cc
@@ -6,6 +6,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/prefs/pref_service.h"
#include "base/run_loop.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
@@ -19,7 +20,6 @@
#include "components/autofill/core/browser/test_autofill_driver.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "components/autofill/core/common/form_data.h"
-#include "components/prefs/pref_service.h"
#include "components/webdata_services/web_data_service_test_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/components/autofill/core/browser/autofill_experiments.cc b/components/autofill/core/browser/autofill_experiments.cc
index b878035..3ccfe96 100644
--- a/components/autofill/core/browser/autofill_experiments.cc
+++ b/components/autofill/core/browser/autofill_experiments.cc
@@ -6,11 +6,11 @@
#include "base/command_line.h"
#include "base/metrics/field_trial.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "components/autofill/core/common/autofill_pref_names.h"
#include "components/autofill/core/common/autofill_switches.h"
-#include "components/prefs/pref_service.h"
#include "components/sync_driver/sync_service.h"
#include "google_apis/gaia/gaia_auth_util.h"
diff --git a/components/autofill/core/browser/autofill_manager.cc b/components/autofill/core/browser/autofill_manager.cc
index 47a9037..304d7cc 100644
--- a/components/autofill/core/browser/autofill_manager.cc
+++ b/components/autofill/core/browser/autofill_manager.cc
@@ -23,6 +23,7 @@
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram_macros.h"
#include "base/path_service.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string16.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -57,7 +58,6 @@
#include "components/autofill/core/common/form_field_data.h"
#include "components/autofill/core/common/password_form_fill_data.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
#include "google_apis/gaia/identity_provider.h"
#include "grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
diff --git a/components/autofill/core/browser/autofill_manager_unittest.cc b/components/autofill/core/browser/autofill_manager_unittest.cc
index 3588d9d..b994ebf 100644
--- a/components/autofill/core/browser/autofill_manager_unittest.cc
+++ b/components/autofill/core/browser/autofill_manager_unittest.cc
@@ -13,6 +13,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
+#include "base/prefs/pref_service.h"
#include "base/run_loop.h"
#include "base/strings/string16.h"
#include "base/strings/string_number_conversions.h"
@@ -41,7 +42,6 @@
#include "components/autofill/core/common/autofill_util.h"
#include "components/autofill/core/common/form_data.h"
#include "components/autofill/core/common/form_field_data.h"
-#include "components/prefs/pref_service.h"
#include "grit/components_strings.h"
#include "net/url_request/url_request_test_util.h"
#include "testing/gmock/include/gmock/gmock.h"
diff --git a/components/autofill/core/browser/autofill_metrics_unittest.cc b/components/autofill/core/browser/autofill_metrics_unittest.cc
index 11dca25..9a45408 100644
--- a/components/autofill/core/browser/autofill_metrics_unittest.cc
+++ b/components/autofill/core/browser/autofill_metrics_unittest.cc
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/pref_service.h"
#include "base/run_loop.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
@@ -26,7 +27,6 @@
#include "components/autofill/core/common/autofill_pref_names.h"
#include "components/autofill/core/common/form_data.h"
#include "components/autofill/core/common/form_field_data.h"
-#include "components/prefs/pref_service.h"
#include "components/rappor/test_rappor_service.h"
#include "components/signin/core/browser/account_tracker_service.h"
#include "components/signin/core/browser/fake_signin_manager.h"
diff --git a/components/autofill/core/browser/autofill_test_utils.cc b/components/autofill/core/browser/autofill_test_utils.cc
index 8854b8b..f33ce63 100644
--- a/components/autofill/core/browser/autofill_test_utils.cc
+++ b/components/autofill/core/browser/autofill_test_utils.cc
@@ -7,6 +7,9 @@
#include <string>
#include "base/guid.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/pref_service_factory.h"
+#include "base/prefs/testing_pref_store.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "components/autofill/core/browser/autofill_manager.h"
@@ -19,9 +22,6 @@
#include "components/autofill/core/common/form_field_data.h"
#include "components/os_crypt/os_crypt.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/pref_service_factory.h"
-#include "components/prefs/testing_pref_store.h"
#include "components/signin/core/browser/account_fetcher_service.h"
#include "components/signin/core/browser/account_tracker_service.h"
#include "components/signin/core/common/signin_pref_names.h"
@@ -62,7 +62,7 @@ scoped_ptr<PrefService> PrefServiceForTesting() {
AccountTrackerService::MIGRATION_NOT_STARTED);
registry->RegisterInt64Pref(AccountFetcherService::kLastUpdatePref, 0);
- PrefServiceFactory factory;
+ base::PrefServiceFactory factory;
factory.set_user_prefs(make_scoped_refptr(new TestingPrefStore()));
return factory.Create(registry.get());
}
diff --git a/components/autofill/core/browser/autofill_wallet_data_type_controller.cc b/components/autofill/core/browser/autofill_wallet_data_type_controller.cc
index d4275e9..811d967 100644
--- a/components/autofill/core/browser/autofill_wallet_data_type_controller.cc
+++ b/components/autofill/core/browser/autofill_wallet_data_type_controller.cc
@@ -5,10 +5,10 @@
#include "components/autofill/core/browser/autofill_wallet_data_type_controller.h"
#include "base/bind.h"
+#include "base/prefs/pref_service.h"
#include "components/autofill/core/browser/personal_data_manager.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "components/autofill/core/common/autofill_pref_names.h"
-#include "components/prefs/pref_service.h"
#include "components/sync_driver/sync_client.h"
#include "components/sync_driver/sync_service.h"
#include "sync/api/sync_error.h"
diff --git a/components/autofill/core/browser/autofill_wallet_data_type_controller.h b/components/autofill/core/browser/autofill_wallet_data_type_controller.h
index 2850c22..2b890f8 100644
--- a/components/autofill/core/browser/autofill_wallet_data_type_controller.h
+++ b/components/autofill/core/browser/autofill_wallet_data_type_controller.h
@@ -6,7 +6,7 @@
#define COMPONENTS_SYNC_DRIVER_GLUE_AUTOFILL_WALLET_DATA_TYPE_CONTROLLER_H_
#include "base/macros.h"
-#include "components/prefs/pref_change_registrar.h"
+#include "base/prefs/pref_change_registrar.h"
#include "components/sync_driver/non_ui_data_type_controller.h"
namespace autofill {
diff --git a/components/autofill/core/browser/options_util_unittest.cc b/components/autofill/core/browser/options_util_unittest.cc
index 0712dbe..5a89d00 100644
--- a/components/autofill/core/browser/options_util_unittest.cc
+++ b/components/autofill/core/browser/options_util_unittest.cc
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/testing_pref_service.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/options_util.h"
#include "components/autofill/core/browser/test_personal_data_manager.h"
#include "components/autofill/core/common/autofill_pref_names.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/testing_pref_service.h"
#include "components/sync_driver/data_type_manager.h"
#include "components/sync_driver/fake_sync_service.h"
#include "components/sync_driver/sync_service.h"
diff --git a/components/autofill/core/browser/personal_data_manager.cc b/components/autofill/core/browser/personal_data_manager.cc
index 315cec1..7e17254 100644
--- a/components/autofill/core/browser/personal_data_manager.cc
+++ b/components/autofill/core/browser/personal_data_manager.cc
@@ -13,6 +13,7 @@
#include "base/i18n/case_conversion.h"
#include "base/i18n/timezone.h"
+#include "base/prefs/pref_service.h"
#include "base/profiler/scoped_tracker.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
@@ -34,7 +35,6 @@
#include "components/autofill/core/common/autofill_pref_names.h"
#include "components/autofill/core/common/autofill_switches.h"
#include "components/autofill/core/common/autofill_util.h"
-#include "components/prefs/pref_service.h"
#include "components/signin/core/browser/account_tracker_service.h"
#include "components/signin/core/browser/signin_manager.h"
#include "components/signin/core/common/signin_pref_names.h"
diff --git a/components/autofill/core/browser/personal_data_manager.h b/components/autofill/core/browser/personal_data_manager.h
index 68515e5..48e3106 100644
--- a/components/autofill/core/browser/personal_data_manager.h
+++ b/components/autofill/core/browser/personal_data_manager.h
@@ -14,6 +14,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/observer_list.h"
+#include "base/prefs/pref_member.h"
#include "base/strings/string16.h"
#include "build/build_config.h"
#include "components/autofill/core/browser/autofill_profile.h"
@@ -23,7 +24,6 @@
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service_observer.h"
#include "components/keyed_service/core/keyed_service.h"
-#include "components/prefs/pref_member.h"
#include "components/webdata/common/web_data_service_consumer.h"
class AccountTrackerService;
diff --git a/components/autofill/core/browser/personal_data_manager_unittest.cc b/components/autofill/core/browser/personal_data_manager_unittest.cc
index 33358a5..f4358b8 100644
--- a/components/autofill/core/browser/personal_data_manager_unittest.cc
+++ b/components/autofill/core/browser/personal_data_manager_unittest.cc
@@ -13,6 +13,7 @@
#include "base/guid.h"
#include "base/memory/scoped_ptr.h"
#include "base/metrics/field_trial.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include "base/synchronization/waitable_event.h"
#include "base/thread_task_runner_handle.h"
@@ -30,7 +31,6 @@
#include "components/autofill/core/common/autofill_pref_names.h"
#include "components/autofill/core/common/autofill_switches.h"
#include "components/autofill/core/common/form_data.h"
-#include "components/prefs/pref_service.h"
#include "components/signin/core/browser/account_tracker_service.h"
#include "components/signin/core/browser/fake_signin_manager.h"
#include "components/signin/core/browser/test_signin_client.h"
diff --git a/components/autofill/core/browser/test_autofill_client.h b/components/autofill/core/browser/test_autofill_client.h
index d11e874..62a7039 100644
--- a/components/autofill/core/browser/test_autofill_client.h
+++ b/components/autofill/core/browser/test_autofill_client.h
@@ -11,8 +11,8 @@
#include "base/i18n/rtl.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/pref_service.h"
#include "components/autofill/core/browser/autofill_client.h"
-#include "components/prefs/pref_service.h"
#include "components/rappor/test_rappor_service.h"
#include "google_apis/gaia/fake_identity_provider.h"
#include "google_apis/gaia/fake_oauth2_token_service.h"
diff --git a/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc b/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc
index 9b5bfeb..da0fe37 100644
--- a/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc
+++ b/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc
@@ -7,6 +7,7 @@
#include <stddef.h>
#include "base/bind.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -15,7 +16,6 @@
#include "components/autofill/core/browser/autofill_metrics.h"
#include "components/autofill/core/browser/ui/card_unmask_prompt_view.h"
#include "components/autofill/core/common/autofill_pref_names.h"
-#include "components/prefs/pref_service.h"
#include "grit/components_scaled_resources.h"
#include "grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
diff --git a/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc b/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc
index fb6e4b8..2850629 100644
--- a/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc
+++ b/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc
@@ -8,6 +8,8 @@
#include "base/bind.h"
#include "base/macros.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/histogram_tester.h"
#include "components/autofill/core/browser/autofill_client.h"
@@ -15,8 +17,6 @@
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/ui/card_unmask_prompt_view.h"
#include "components/autofill/core/common/autofill_pref_names.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace autofill {
diff --git a/components/bookmarks/DEPS b/components/bookmarks/DEPS
index 40b213e..1871065 100644
--- a/components/bookmarks/DEPS
+++ b/components/bookmarks/DEPS
@@ -2,7 +2,6 @@ include_rules = [
"+components/favicon_base",
"+components/keyed_service",
"+components/pref_registry",
- "+components/prefs",
"+components/query_parser",
"+components/url_formatter",
"+grit/components_strings.h",
diff --git a/components/bookmarks/browser/bookmark_expanded_state_tracker.cc b/components/bookmarks/browser/bookmark_expanded_state_tracker.cc
index 427f2d3..656e1b0 100644
--- a/components/bookmarks/browser/bookmark_expanded_state_tracker.cc
+++ b/components/bookmarks/browser/bookmark_expanded_state_tracker.cc
@@ -6,12 +6,12 @@
#include <stdint.h>
+#include "base/prefs/pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_utils.h"
#include "components/bookmarks/common/bookmark_pref_names.h"
-#include "components/prefs/pref_service.h"
namespace bookmarks {
diff --git a/components/bookmarks/browser/bookmark_expanded_state_tracker_unittest.cc b/components/bookmarks/browser/bookmark_expanded_state_tracker_unittest.cc
index deb7ec2..2b97a42 100644
--- a/components/bookmarks/browser/bookmark_expanded_state_tracker_unittest.cc
+++ b/components/bookmarks/browser/bookmark_expanded_state_tracker_unittest.cc
@@ -7,14 +7,14 @@
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include "base/thread_task_runner_handle.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/common/bookmark_pref_names.h"
#include "components/bookmarks/test/bookmark_test_helpers.h"
#include "components/bookmarks/test/test_bookmark_client.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace bookmarks {
diff --git a/components/bookmarks/browser/bookmark_utils.cc b/components/bookmarks/browser/bookmark_utils.cc
index 5843ab5..b7de975 100644
--- a/components/bookmarks/browser/bookmark_utils.cc
+++ b/components/bookmarks/browser/bookmark_utils.cc
@@ -14,6 +14,7 @@
#include "base/i18n/string_search.h"
#include "base/macros.h"
#include "base/metrics/user_metrics_action.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
@@ -24,7 +25,6 @@
#include "components/bookmarks/browser/scoped_group_bookmark_actions.h"
#include "components/bookmarks/common/bookmark_pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
#include "components/query_parser/query_parser.h"
#include "components/url_formatter/url_formatter.h"
#include "ui/base/clipboard/clipboard.h"
diff --git a/components/bookmarks/managed/managed_bookmarks_tracker.cc b/components/bookmarks/managed/managed_bookmarks_tracker.cc
index c26784c..8ced8e6 100644
--- a/components/bookmarks/managed/managed_bookmarks_tracker.cc
+++ b/components/bookmarks/managed/managed_bookmarks_tracker.cc
@@ -10,12 +10,12 @@
#include "base/bind_helpers.h"
#include "base/callback.h"
#include "base/logging.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_node.h"
#include "components/bookmarks/common/bookmark_pref_names.h"
-#include "components/prefs/pref_service.h"
#include "grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
diff --git a/components/bookmarks/managed/managed_bookmarks_tracker.h b/components/bookmarks/managed/managed_bookmarks_tracker.h
index 5cb838f..772ddf9 100644
--- a/components/bookmarks/managed/managed_bookmarks_tracker.h
+++ b/components/bookmarks/managed/managed_bookmarks_tracker.h
@@ -10,8 +10,8 @@
#include "base/callback_forward.h"
#include "base/macros.h"
+#include "base/prefs/pref_change_registrar.h"
#include "base/strings/string16.h"
-#include "components/prefs/pref_change_registrar.h"
class GURL;
class PrefService;
diff --git a/components/bookmarks/managed/managed_bookmarks_tracker_unittest.cc b/components/bookmarks/managed/managed_bookmarks_tracker_unittest.cc
index 0538d5e..83f3bcd 100644
--- a/components/bookmarks/managed/managed_bookmarks_tracker_unittest.cc
+++ b/components/bookmarks/managed/managed_bookmarks_tracker_unittest.cc
@@ -10,6 +10,8 @@
#include "base/files/file_path.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include "base/thread_task_runner_handle.h"
#include "components/bookmarks/browser/bookmark_model.h"
@@ -19,8 +21,6 @@
#include "components/bookmarks/test/bookmark_test_helpers.h"
#include "components/bookmarks/test/mock_bookmark_model_observer.h"
#include "components/bookmarks/test/test_bookmark_client.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/testing_pref_service.h"
#include "grit/components_strings.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/components/browser_sync/browser/DEPS b/components/browser_sync/browser/DEPS
index 72ed951..320e143 100644
--- a/components/browser_sync/browser/DEPS
+++ b/components/browser_sync/browser/DEPS
@@ -7,7 +7,6 @@ include_rules = [
"+components/password_manager/core/browser",
"+components/password_manager/sync/browser",
"+components/pref_registry",
- "+components/prefs",
"+components/signin/core/browser",
"+components/syncable_prefs",
"+components/sync_bookmarks",
diff --git a/components/browser_sync/browser/profile_sync_components_factory_impl.cc b/components/browser_sync/browser/profile_sync_components_factory_impl.cc
index 36896a9..69bf558 100644
--- a/components/browser_sync/browser/profile_sync_components_factory_impl.cc
+++ b/components/browser_sync/browser/profile_sync_components_factory_impl.cc
@@ -8,6 +8,7 @@
#include "base/command_line.h"
#include "base/memory/ref_counted.h"
+#include "base/prefs/pref_service.h"
#include "build/build_config.h"
#include "components/autofill/core/browser/autofill_wallet_data_type_controller.h"
#include "components/autofill/core/browser/webdata/autofill_data_type_controller.h"
@@ -22,7 +23,6 @@
#include "components/history/core/browser/typed_url_data_type_controller.h"
#include "components/password_manager/core/browser/password_store.h"
#include "components/password_manager/sync/browser/password_data_type_controller.h"
-#include "components/prefs/pref_service.h"
#include "components/sync_bookmarks/bookmark_change_processor.h"
#include "components/sync_bookmarks/bookmark_data_type_controller.h"
#include "components/sync_bookmarks/bookmark_model_associator.h"
diff --git a/components/browser_sync/browser/profile_sync_service.cc b/components/browser_sync/browser/profile_sync_service.cc
index 34bf304..771208f 100644
--- a/components/browser_sync/browser/profile_sync_service.cc
+++ b/components/browser_sync/browser/profile_sync_service.cc
@@ -20,6 +20,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/metrics/histogram.h"
+#include "base/prefs/json_pref_store.h"
#include "base/profiler/scoped_tracker.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/string16.h"
@@ -34,7 +35,6 @@
#include "components/invalidation/impl/invalidation_prefs.h"
#include "components/invalidation/public/invalidation_service.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/json_pref_store.h"
#include "components/signin/core/browser/about_signin_internals.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#include "components/signin/core/browser/signin_manager.h"
diff --git a/components/content_settings/DEPS b/components/content_settings/DEPS
index 3a4400f..df72508 100644
--- a/components/content_settings/DEPS
+++ b/components/content_settings/DEPS
@@ -2,5 +2,4 @@ include_rules = [
# Content settings is a layered component; subdirectories must explicitly
# introduce the ability to use the content layer as appropriate.
"-components/content_settings/content",
- "+components/prefs",
]
diff --git a/components/content_settings/core/browser/content_settings_default_provider.cc b/components/content_settings/core/browser/content_settings_default_provider.cc
index 7d8d25b..9cd6eba 100644
--- a/components/content_settings/core/browser/content_settings_default_provider.cc
+++ b/components/content_settings/core/browser/content_settings_default_provider.cc
@@ -11,6 +11,9 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/metrics/histogram_macros.h"
+#include "base/prefs/pref_registry.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/scoped_user_pref_update.h"
#include "components/content_settings/core/browser/content_settings_rule.h"
#include "components/content_settings/core/browser/content_settings_utils.h"
#include "components/content_settings/core/browser/website_settings_info.h"
@@ -19,9 +22,6 @@
#include "components/content_settings/core/common/content_settings_pattern.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_registry.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/scoped_user_pref_update.h"
#include "url/gurl.h"
namespace content_settings {
diff --git a/components/content_settings/core/browser/content_settings_default_provider.h b/components/content_settings/core/browser/content_settings_default_provider.h
index e2ce847..3541c51 100644
--- a/components/content_settings/core/browser/content_settings_default_provider.h
+++ b/components/content_settings/core/browser/content_settings_default_provider.h
@@ -11,9 +11,9 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/pref_change_registrar.h"
#include "base/synchronization/lock.h"
#include "components/content_settings/core/browser/content_settings_observable_provider.h"
-#include "components/prefs/pref_change_registrar.h"
class PrefService;
diff --git a/components/content_settings/core/browser/content_settings_policy_provider.cc b/components/content_settings/core/browser/content_settings_policy_provider.cc
index ef9643d..0f773dd 100644
--- a/components/content_settings/core/browser/content_settings_policy_provider.cc
+++ b/components/content_settings/core/browser/content_settings_policy_provider.cc
@@ -11,13 +11,13 @@
#include "base/bind.h"
#include "base/json/json_reader.h"
#include "base/macros.h"
+#include "base/prefs/pref_service.h"
#include "base/values.h"
#include "components/content_settings/core/browser/content_settings_rule.h"
#include "components/content_settings/core/browser/content_settings_utils.h"
#include "components/content_settings/core/common/content_settings_pattern.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
namespace {
diff --git a/components/content_settings/core/browser/content_settings_policy_provider.h b/components/content_settings/core/browser/content_settings_policy_provider.h
index f205845..ae49eee 100644
--- a/components/content_settings/core/browser/content_settings_policy_provider.h
+++ b/components/content_settings/core/browser/content_settings_policy_provider.h
@@ -10,10 +10,10 @@
#include <vector>
#include "base/macros.h"
+#include "base/prefs/pref_change_registrar.h"
#include "base/synchronization/lock.h"
#include "components/content_settings/core/browser/content_settings_observable_provider.h"
#include "components/content_settings/core/browser/content_settings_origin_identifier_value_map.h"
-#include "components/prefs/pref_change_registrar.h"
class PrefService;
diff --git a/components/content_settings/core/browser/content_settings_pref.cc b/components/content_settings/core/browser/content_settings_pref.cc
index e1e2b33..6145152 100644
--- a/components/content_settings/core/browser/content_settings_pref.cc
+++ b/components/content_settings/core/browser/content_settings_pref.cc
@@ -8,6 +8,7 @@
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram_macros.h"
+#include "base/prefs/scoped_user_pref_update.h"
#include "base/strings/string_split.h"
#include "base/time/clock.h"
#include "components/content_settings/core/browser/content_settings_info.h"
@@ -18,7 +19,6 @@
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_pattern.h"
#include "components/content_settings/core/common/pref_names.h"
-#include "components/prefs/scoped_user_pref_update.h"
#include "url/gurl.h"
namespace {
diff --git a/components/content_settings/core/browser/content_settings_pref_provider.cc b/components/content_settings/core/browser/content_settings_pref_provider.cc
index 9a7e358..a29dfbd 100644
--- a/components/content_settings/core/browser/content_settings_pref_provider.cc
+++ b/components/content_settings/core/browser/content_settings_pref_provider.cc
@@ -14,6 +14,9 @@
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram_macros.h"
+#include "base/prefs/pref_registry.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/scoped_user_pref_update.h"
#include "base/strings/string_split.h"
#include "base/time/clock.h"
#include "base/time/default_clock.h"
@@ -27,9 +30,6 @@
#include "components/content_settings/core/common/content_settings_pattern.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_registry.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/scoped_user_pref_update.h"
namespace {
diff --git a/components/content_settings/core/browser/content_settings_pref_provider.h b/components/content_settings/core/browser/content_settings_pref_provider.h
index 3ef2d7c..395632d 100644
--- a/components/content_settings/core/browser/content_settings_pref_provider.h
+++ b/components/content_settings/core/browser/content_settings_pref_provider.h
@@ -12,9 +12,9 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/pref_change_registrar.h"
#include "components/content_settings/core/browser/content_settings_observable_provider.h"
#include "components/content_settings/core/browser/content_settings_utils.h"
-#include "components/prefs/pref_change_registrar.h"
class PrefService;
diff --git a/components/content_settings/core/browser/content_settings_registry_unittest.cc b/components/content_settings/core/browser/content_settings_registry_unittest.cc
index 4184b8c..50d4b6c 100644
--- a/components/content_settings/core/browser/content_settings_registry_unittest.cc
+++ b/components/content_settings/core/browser/content_settings_registry_unittest.cc
@@ -6,6 +6,7 @@
#include <vector>
#include "base/logging.h"
+#include "base/prefs/pref_registry.h"
#include "base/values.h"
#include "components/content_settings/core/browser/content_settings_info.h"
#include "components/content_settings/core/browser/content_settings_registry.h"
@@ -14,7 +15,6 @@
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_types.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_registry.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content_settings {
diff --git a/components/content_settings/core/browser/content_settings_usages_state.cc b/components/content_settings/core/browser/content_settings_usages_state.cc
index 6c5db41..8113260 100644
--- a/components/content_settings/core/browser/content_settings_usages_state.cc
+++ b/components/content_settings/core/browser/content_settings_usages_state.cc
@@ -6,9 +6,9 @@
#include <string>
+#include "base/prefs/pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
-#include "components/prefs/pref_service.h"
#include "components/url_formatter/url_formatter.h"
ContentSettingsUsagesState::CommittedDetails::CommittedDetails()
diff --git a/components/content_settings/core/browser/cookie_settings.cc b/components/content_settings/core/browser/cookie_settings.cc
index 2339c86..7225477 100644
--- a/components/content_settings/core/browser/cookie_settings.cc
+++ b/components/content_settings/core/browser/cookie_settings.cc
@@ -6,12 +6,12 @@
#include "base/bind.h"
#include "base/logging.h"
+#include "base/prefs/pref_service.h"
#include "components/content_settings/core/browser/content_settings_utils.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/content_settings_pattern.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
#include "net/base/net_errors.h"
#include "net/base/static_cookie_policy.h"
#include "url/gurl.h"
diff --git a/components/content_settings/core/browser/cookie_settings.h b/components/content_settings/core/browser/cookie_settings.h
index 681f04c..31057e8 100644
--- a/components/content_settings/core/browser/cookie_settings.h
+++ b/components/content_settings/core/browser/cookie_settings.h
@@ -10,12 +10,12 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/prefs/pref_change_registrar.h"
#include "base/synchronization/lock.h"
#include "base/threading/thread_checker.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/keyed_service/core/refcounted_keyed_service.h"
-#include "components/prefs/pref_change_registrar.h"
class ContentSettingsPattern;
class GURL;
diff --git a/components/content_settings/core/browser/host_content_settings_map.cc b/components/content_settings/core/browser/host_content_settings_map.cc
index 2e781a6..4d0aadd 100644
--- a/components/content_settings/core/browser/host_content_settings_map.cc
+++ b/components/content_settings/core/browser/host_content_settings_map.cc
@@ -10,6 +10,7 @@
#include "base/command_line.h"
#include "base/macros.h"
+#include "base/prefs/pref_service.h"
#include "base/stl_util.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -29,7 +30,6 @@
#include "components/content_settings/core/common/content_settings_pattern.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
#include "net/base/net_errors.h"
#include "net/base/static_cookie_policy.h"
#include "url/gurl.h"
diff --git a/components/content_settings/core/browser/host_content_settings_map.h b/components/content_settings/core/browser/host_content_settings_map.h
index 98fe724..b31228e 100644
--- a/components/content_settings/core/browser/host_content_settings_map.h
+++ b/components/content_settings/core/browser/host_content_settings_map.h
@@ -15,6 +15,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/observer_list.h"
+#include "base/prefs/pref_change_registrar.h"
#include "base/threading/platform_thread.h"
#include "base/threading/thread_checker.h"
#include "components/content_settings/core/browser/content_settings_observer.h"
@@ -23,7 +24,6 @@
#include "components/content_settings/core/common/content_settings_pattern.h"
#include "components/content_settings/core/common/content_settings_types.h"
#include "components/keyed_service/core/refcounted_keyed_service.h"
-#include "components/prefs/pref_change_registrar.h"
class ExtensionService;
class GURL;
diff --git a/components/content_settings/core/browser/website_settings_info.cc b/components/content_settings/core/browser/website_settings_info.cc
index 97a532d..0543f072 100644
--- a/components/content_settings/core/browser/website_settings_info.cc
+++ b/components/content_settings/core/browser/website_settings_info.cc
@@ -7,10 +7,10 @@
#include <utility>
#include "base/logging.h"
+#include "base/prefs/pref_registry.h"
#include "base/strings/string_util.h"
#include "base/values.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_registry.h"
namespace {
diff --git a/components/content_settings/core/browser/website_settings_registry_unittest.cc b/components/content_settings/core/browser/website_settings_registry_unittest.cc
index aa72fc1..c476859 100644
--- a/components/content_settings/core/browser/website_settings_registry_unittest.cc
+++ b/components/content_settings/core/browser/website_settings_registry_unittest.cc
@@ -3,13 +3,13 @@
// found in the LICENSE file.
#include "base/logging.h"
+#include "base/prefs/pref_registry.h"
#include "base/values.h"
#include "components/content_settings/core/browser/website_settings_info.h"
#include "components/content_settings/core/browser/website_settings_registry.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_types.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_registry.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content_settings {
diff --git a/components/cronet/DEPS b/components/cronet/DEPS
index bd43afc..413c4b4 100644
--- a/components/cronet/DEPS
+++ b/components/cronet/DEPS
@@ -1,5 +1,4 @@
include_rules = [
"+components/metrics",
- "+components/prefs",
"+net",
]
diff --git a/components/cronet/android/cronet_data_reduction_proxy.cc b/components/cronet/android/cronet_data_reduction_proxy.cc
index 360862fb..0b6bf02 100644
--- a/components/cronet/android/cronet_data_reduction_proxy.cc
+++ b/components/cronet/android/cronet_data_reduction_proxy.cc
@@ -8,6 +8,9 @@
#include "base/command_line.h"
#include "base/logging.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/pref_service_factory.h"
#include "base/single_thread_task_runner.h"
#include "components/cronet/android/cronet_in_memory_pref_store.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
@@ -20,9 +23,6 @@
#include "components/data_reduction_proxy/core/browser/data_store.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/pref_service_factory.h"
#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_interceptor.h"
@@ -36,7 +36,7 @@ scoped_ptr<PrefService> CreatePrefService() {
scoped_refptr<PrefRegistrySimple> pref_registry(new PrefRegistrySimple());
pref_registry->RegisterBooleanPref(kDataReductionProxyEnabled, false);
data_reduction_proxy::RegisterSimpleProfilePrefs(pref_registry.get());
- PrefServiceFactory pref_service_factory;
+ base::PrefServiceFactory pref_service_factory;
pref_service_factory.set_user_prefs(
make_scoped_refptr(new CronetInMemoryPrefStore()));
scoped_ptr<PrefService> pref_service =
diff --git a/components/cronet/android/cronet_in_memory_pref_store.h b/components/cronet/android/cronet_in_memory_pref_store.h
index a9d86ef..1aede14 100644
--- a/components/cronet/android/cronet_in_memory_pref_store.h
+++ b/components/cronet/android/cronet_in_memory_pref_store.h
@@ -13,8 +13,8 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
-#include "components/prefs/persistent_pref_store.h"
-#include "components/prefs/pref_value_map.h"
+#include "base/prefs/persistent_pref_store.h"
+#include "base/prefs/pref_value_map.h"
namespace base {
class Value;
diff --git a/components/cronet/android/cronet_url_request_context_adapter.cc b/components/cronet/android/cronet_url_request_context_adapter.cc
index 49ba22a..a8fe96d 100644
--- a/components/cronet/android/cronet_url_request_context_adapter.cc
+++ b/components/cronet/android/cronet_url_request_context_adapter.cc
@@ -21,16 +21,16 @@
#include "base/memory/scoped_vector.h"
#include "base/message_loop/message_loop.h"
#include "base/metrics/statistics_recorder.h"
+#include "base/prefs/pref_change_registrar.h"
+#include "base/prefs/pref_filter.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/pref_service_factory.h"
#include "base/single_thread_task_runner.h"
#include "base/time/time.h"
#include "base/values.h"
#include "components/cronet/histogram_manager.h"
#include "components/cronet/url_request_context_config.h"
-#include "components/prefs/pref_change_registrar.h"
-#include "components/prefs/pref_filter.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/pref_service_factory.h"
#include "jni/CronetUrlRequestContext_jni.h"
#include "net/base/external_estimate_provider.h"
#include "net/base/load_flags.h"
@@ -443,7 +443,7 @@ void CronetURLRequestContextAdapter::InitializeOnNetworkThread(
context_builder.SetFileTaskRunner(GetFileThread()->task_runner());
// Set up HttpServerPropertiesManager.
- PrefServiceFactory factory;
+ base::PrefServiceFactory factory;
factory.set_user_prefs(json_pref_store_);
scoped_refptr<PrefRegistrySimple> registry(new PrefRegistrySimple());
registry->RegisterDictionaryPref(kHttpServerProperties,
diff --git a/components/cronet/android/cronet_url_request_context_adapter.h b/components/cronet/android/cronet_url_request_context_adapter.h
index 81c07dd..851dc75 100644
--- a/components/cronet/android/cronet_url_request_context_adapter.h
+++ b/components/cronet/android/cronet_url_request_context_adapter.h
@@ -16,8 +16,8 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/json_pref_store.h"
#include "base/threading/thread.h"
-#include "components/prefs/json_pref_store.h"
#include "net/base/network_quality_estimator.h"
class PrefService;
diff --git a/components/data_reduction_proxy/DEPS b/components/data_reduction_proxy/DEPS
index f7c0da4..596361d 100644
--- a/components/data_reduction_proxy/DEPS
+++ b/components/data_reduction_proxy/DEPS
@@ -1,6 +1,5 @@
include_rules = [
"+components/pref_registry",
- "+components/prefs",
"+components/variations",
"+crypto",
"+google_apis",
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc
index e1c1f46..100756e 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc
@@ -15,6 +15,7 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/test/histogram_tester.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h"
@@ -25,7 +26,6 @@
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_headers_test_utils.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
-#include "components/prefs/testing_pref_service.h"
#include "net/base/host_port_pair.h"
#include "net/base/load_flags.h"
#include "net/base/net_errors.h"
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc
index c60fd70..d096c17 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc
@@ -13,6 +13,8 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram_macros.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/scoped_user_pref_update.h"
#include "base/strings/string_number_conversions.h"
#include "base/trace_event/trace_event.h"
#include "base/values.h"
@@ -21,8 +23,6 @@
#include "components/data_reduction_proxy/core/browser/data_usage_store.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/scoped_user_pref_update.h"
#include "net/base/mime_util.h"
namespace data_reduction_proxy {
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
index 59eca58..3aa182a 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
@@ -16,6 +16,8 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "base/prefs/pref_change_registrar.h"
+#include "base/prefs/pref_member.h"
#include "base/threading/thread_checker.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
@@ -23,8 +25,6 @@
#include "components/data_reduction_proxy/core/browser/db_data_owner.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
#include "components/data_reduction_proxy/proto/data_store.pb.h"
-#include "components/prefs/pref_change_registrar.h"
-#include "components/prefs/pref_member.h"
#include "net/base/network_change_notifier.h"
class PrefService;
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc
index d4604af..10f85b7 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc
@@ -12,6 +12,9 @@
#include "base/command_line.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/histogram_tester.h"
@@ -21,9 +24,6 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc
index 6409064..38315d1 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.cc
@@ -6,10 +6,10 @@
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_piece.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
-#include "components/prefs/pref_service.h"
#include "components/variations/variations_associated_data.h"
namespace {
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params_unittest.cc
index 088c637..7b04eea 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params_unittest.cc
@@ -9,11 +9,11 @@
#include <map>
#include "base/message_loop/message_loop.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/time/time.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
-#include "components/prefs/pref_service.h"
#include "components/variations/variations_associated_data.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats_unittest.cc
index 7ecd3f8..3270be9 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats_unittest.cc
@@ -9,13 +9,13 @@
#include <utility>
#include "base/metrics/field_trial.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/histogram_tester.h"
#include "base/time/time.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
-#include "components/prefs/pref_service.h"
#include "components/variations/variations_associated_data.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc
index 66f6a94..1dd1475 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc
@@ -13,6 +13,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
+#include "base/prefs/pref_service.h"
#include "base/run_loop.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h"
@@ -21,7 +22,6 @@
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
-#include "components/prefs/pref_service.h"
#include "net/base/net_errors.h"
#include "net/base/request_priority.h"
#include "net/http/http_response_headers.h"
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc
index 691e2c4..867a7c3 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc
@@ -8,6 +8,8 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
@@ -17,8 +19,6 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/testing_pref_service.h"
#include "net/http/http_network_session.h"
#include "net/log/net_log.h"
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc
index cb51e34..f739eac 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc
@@ -4,11 +4,11 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/scoped_user_pref_update.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/scoped_user_pref_update.h"
namespace {
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs_unittest.cc
index 20032c0..6ff2b5d 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs_unittest.cc
@@ -6,12 +6,12 @@
#include <stdint.h>
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/scoped_user_pref_update.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/scoped_user_pref_update.h"
-#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace data_reduction_proxy {
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
index b1c8f13..e7174f8 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
@@ -10,6 +10,7 @@
#include "base/files/file_path.h"
#include "base/location.h"
#include "base/metrics/histogram_macros.h"
+#include "base/prefs/pref_service.h"
#include "base/sequenced_task_runner.h"
#include "base/task_runner_util.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
@@ -21,7 +22,6 @@
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
#include "components/data_reduction_proxy/proto/data_store.pb.h"
-#include "components/prefs/pref_service.h"
namespace data_reduction_proxy {
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
index 60f0b7a..9c5e4b4 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
@@ -9,6 +9,8 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/metrics/histogram_macros.h"
+#include "base/prefs/pref_member.h"
+#include "base/prefs/pref_service.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h"
@@ -16,8 +18,6 @@
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h"
-#include "components/prefs/pref_member.h"
-#include "components/prefs/pref_service.h"
#include "net/base/network_change_notifier.h"
namespace {
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
index 1984241..eb5400e 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
@@ -15,10 +15,10 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/pref_member.h"
#include "base/threading/thread_checker.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_service_observer.h"
-#include "components/prefs/pref_member.h"
#include "url/gurl.h"
class PrefService;
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc
index 8dbe6a6..244d34b 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc
@@ -8,6 +8,9 @@
#include "base/bind.h"
#include "base/command_line.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/scoped_user_pref_update.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/time/time.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
@@ -17,9 +20,6 @@
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/scoped_user_pref_update.h"
-#include "components/prefs/testing_pref_service.h"
using testing::_;
using testing::AnyNumber;
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h
index bf2944f..15acb69 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h
@@ -9,8 +9,8 @@
#include <string>
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/testing_pref_service.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
-#include "components/prefs/testing_pref_service.h"
#include "net/log/test_net_log.h"
#include "net/url_request/test_url_fetcher_factory.h"
#include "net/url_request/url_request_test_util.h"
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc
index 0bc39ae..e2a4e40 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc
@@ -12,6 +12,7 @@
#include "base/md5.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram_samples.h"
+#include "base/prefs/pref_registry_simple.h"
#include "base/test/histogram_tester.h"
#include "base/test/mock_entropy_provider.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
@@ -24,7 +25,6 @@
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h"
-#include "components/prefs/pref_registry_simple.h"
#include "net/socket/socket_test_util.h"
#include "net/url_request/url_request_test_util.h"
#include "testing/gmock/include/gmock/gmock.h"
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
index 5a73741..8e187a6 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
@@ -8,6 +8,8 @@
#include <utility>
#include "base/macros.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/testing_pref_service.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h"
@@ -25,8 +27,6 @@
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/testing_pref_service.h"
#include "net/socket/socket_test_util.h"
#include "net/url_request/url_request_context_storage.h"
#include "net/url_request/url_request_intercepting_job_factory.h"
diff --git a/components/dom_distiller/DEPS b/components/dom_distiller/DEPS
index 15150b5..7c1ea01 100644
--- a/components/dom_distiller/DEPS
+++ b/components/dom_distiller/DEPS
@@ -1,7 +1,6 @@
include_rules = [
"+components/leveldb_proto",
"+components/pref_registry",
- "+components/prefs",
"+components/variations",
"+google", # For third_party/protobuf.
"+grit", # For generated headers.
diff --git a/components/dom_distiller/core/distilled_page_prefs.cc b/components/dom_distiller/core/distilled_page_prefs.cc
index f8735a8..9a68ef8 100644
--- a/components/dom_distiller/core/distilled_page_prefs.cc
+++ b/components/dom_distiller/core/distilled_page_prefs.cc
@@ -8,10 +8,10 @@
#include "base/location.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
+#include "base/prefs/pref_service.h"
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
namespace {
diff --git a/components/drive/DEPS b/components/drive/DEPS
index c23c40e..48aeee1 100644
--- a/components/drive/DEPS
+++ b/components/drive/DEPS
@@ -1,7 +1,6 @@
include_rules = [
"+components/invalidation",
"+components/keyed_service",
- "+components/prefs",
"+google_apis",
"+google/cacheinvalidation/types.pb.h",
"+net",
diff --git a/components/drive/change_list_loader_unittest.cc b/components/drive/change_list_loader_unittest.cc
index 4db2c9b..cef19aef 100644
--- a/components/drive/change_list_loader_unittest.cc
+++ b/components/drive/change_list_loader_unittest.cc
@@ -10,6 +10,7 @@
#include "base/files/scoped_temp_dir.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
@@ -23,7 +24,6 @@
#include "components/drive/resource_metadata.h"
#include "components/drive/service/fake_drive_service.h"
#include "components/drive/service/test_util.h"
-#include "components/prefs/testing_pref_service.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "google_apis/drive/drive_api_parser.h"
#include "google_apis/drive/test_util.h"
diff --git a/components/drive/directory_loader_unittest.cc b/components/drive/directory_loader_unittest.cc
index f47691d..810a3db 100644
--- a/components/drive/directory_loader_unittest.cc
+++ b/components/drive/directory_loader_unittest.cc
@@ -8,6 +8,7 @@
#include "base/files/scoped_temp_dir.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
@@ -21,7 +22,6 @@
#include "components/drive/resource_metadata.h"
#include "components/drive/service/fake_drive_service.h"
#include "components/drive/service/test_util.h"
-#include "components/prefs/testing_pref_service.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "google_apis/drive/drive_api_parser.h"
#include "google_apis/drive/test_util.h"
diff --git a/components/drive/drive_test_util.cc b/components/drive/drive_test_util.cc
index d80f4d9..48bece2 100644
--- a/components/drive/drive_test_util.cc
+++ b/components/drive/drive_test_util.cc
@@ -4,10 +4,10 @@
#include "components/drive/drive_test_util.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/testing_pref_service.h"
#include "components/drive/drive.pb.h"
#include "components/drive/drive_pref_names.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/testing_pref_service.h"
namespace drive {
namespace test_util {
diff --git a/components/drive/file_system.cc b/components/drive/file_system.cc
index dcb00a6..c42da59 100644
--- a/components/drive/file_system.cc
+++ b/components/drive/file_system.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/files/file_util.h"
+#include "base/prefs/pref_service.h"
#include "components/drive/change_list_loader.h"
#include "components/drive/directory_loader.h"
#include "components/drive/drive.pb.h"
@@ -34,7 +35,6 @@
#include "components/drive/resource_entry_conversion.h"
#include "components/drive/search_metadata.h"
#include "components/drive/sync_client.h"
-#include "components/prefs/pref_service.h"
#include "google_apis/drive/drive_api_parser.h"
namespace drive {
diff --git a/components/drive/file_system/operation_test_base.cc b/components/drive/file_system/operation_test_base.cc
index 0aad574..603aed4 100644
--- a/components/drive/file_system/operation_test_base.cc
+++ b/components/drive/file_system/operation_test_base.cc
@@ -4,6 +4,7 @@
#include "components/drive/file_system/operation_test_base.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/threading/sequenced_worker_pool.h"
#include "components/drive/change_list_loader.h"
#include "components/drive/event_logger.h"
@@ -15,7 +16,6 @@
#include "components/drive/resource_metadata.h"
#include "components/drive/service/fake_drive_service.h"
#include "components/drive/service/test_util.h"
-#include "components/prefs/testing_pref_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/test_utils.h"
#include "google_apis/drive/test_util.h"
diff --git a/components/drive/file_system_core_util.cc b/components/drive/file_system_core_util.cc
index 51e3472..c7b9bb1 100644
--- a/components/drive/file_system_core_util.cc
+++ b/components/drive/file_system_core_util.cc
@@ -18,6 +18,7 @@
#include "base/json/json_file_value_serializer.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
@@ -26,7 +27,6 @@
#include "components/drive/drive.pb.h"
#include "components/drive/drive_pref_names.h"
#include "components/drive/job_list.h"
-#include "components/prefs/pref_service.h"
namespace drive {
namespace util {
diff --git a/components/drive/file_system_unittest.cc b/components/drive/file_system_unittest.cc
index 271dba1..354c3e4 100644
--- a/components/drive/file_system_unittest.cc
+++ b/components/drive/file_system_unittest.cc
@@ -16,6 +16,7 @@
#include "base/files/scoped_temp_dir.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
@@ -32,7 +33,6 @@
#include "components/drive/service/fake_drive_service.h"
#include "components/drive/service/test_util.h"
#include "components/drive/sync_client.h"
-#include "components/prefs/testing_pref_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "google_apis/drive/drive_api_parser.h"
diff --git a/components/drive/job_scheduler.cc b/components/drive/job_scheduler.cc
index a422e1d..036d3c8 100644
--- a/components/drive/job_scheduler.cc
+++ b/components/drive/job_scheduler.cc
@@ -10,13 +10,13 @@
#include "base/files/file_util.h"
#include "base/metrics/histogram.h"
+#include "base/prefs/pref_service.h"
#include "base/rand_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "base/thread_task_runner_handle.h"
#include "components/drive/drive_pref_names.h"
#include "components/drive/event_logger.h"
-#include "components/prefs/pref_service.h"
#include "google_apis/drive/drive_api_parser.h"
namespace drive {
diff --git a/components/drive/job_scheduler_unittest.cc b/components/drive/job_scheduler_unittest.cc
index 4b390fe..a6e4f13 100644
--- a/components/drive/job_scheduler_unittest.cc
+++ b/components/drive/job_scheduler_unittest.cc
@@ -12,6 +12,7 @@
#include "base/bind.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
@@ -22,7 +23,6 @@
#include "components/drive/event_logger.h"
#include "components/drive/service/fake_drive_service.h"
#include "components/drive/service/test_util.h"
-#include "components/prefs/testing_pref_service.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "google_apis/drive/drive_api_parser.h"
#include "google_apis/drive/test_util.h"
diff --git a/components/drive/sync_client_unittest.cc b/components/drive/sync_client_unittest.cc
index 6770264..250b85d 100644
--- a/components/drive/sync_client_unittest.cc
+++ b/components/drive/sync_client_unittest.cc
@@ -8,6 +8,7 @@
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/test/test_timeouts.h"
@@ -27,7 +28,6 @@
#include "components/drive/resource_entry_conversion.h"
#include "components/drive/resource_metadata.h"
#include "components/drive/service/fake_drive_service.h"
-#include "components/prefs/testing_pref_service.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "google_apis/drive/drive_api_parser.h"
#include "google_apis/drive/test_util.h"
diff --git a/components/feedback/DEPS b/components/feedback/DEPS
index 73e72b2..3a9dc0b20 100644
--- a/components/feedback/DEPS
+++ b/components/feedback/DEPS
@@ -2,7 +2,6 @@ include_rules = [
"-content",
"+components/keyed_service",
"+components/pref_registry",
- "+components/prefs",
"+components/user_prefs",
"+components/variations",
"+content/public/browser",
diff --git a/components/feedback/feedback_data_unittest.cc b/components/feedback/feedback_data_unittest.cc
index 53efa43..074a31c 100644
--- a/components/feedback/feedback_data_unittest.cc
+++ b/components/feedback/feedback_data_unittest.cc
@@ -9,11 +9,11 @@
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/run_loop.h"
#include "components/feedback/feedback_uploader.h"
#include "components/feedback/feedback_uploader_factory.h"
#include "components/keyed_service/core/keyed_service.h"
-#include "components/prefs/testing_pref_service.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_browser_thread.h"
diff --git a/components/filesystem/DEPS b/components/filesystem/DEPS
index 994c4ca..89e17ff 100644
--- a/components/filesystem/DEPS
+++ b/components/filesystem/DEPS
@@ -1,5 +1,4 @@
include_rules = [
- "+components/prefs",
"+mojo/common",
"+mojo/shell",
"+mojo/platform_handle",
diff --git a/components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc b/components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc
index a31b6f2..bedf5e3 100644
--- a/components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc
+++ b/components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc
@@ -17,12 +17,12 @@
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/prefs/pref_filter.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/task_runner_util.h"
#include "base/time/default_clock.h"
#include "base/values.h"
-#include "components/prefs/pref_filter.h"
#include "mojo/common/common_type_converters.h"
namespace filesystem {
diff --git a/components/filesystem/public/cpp/prefs/filesystem_json_pref_store.h b/components/filesystem/public/cpp/prefs/filesystem_json_pref_store.h
index d75fcd6..75cdead 100644
--- a/components/filesystem/public/cpp/prefs/filesystem_json_pref_store.h
+++ b/components/filesystem/public/cpp/prefs/filesystem_json_pref_store.h
@@ -18,14 +18,14 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
+#include "base/prefs/base_prefs_export.h"
+#include "base/prefs/persistent_pref_store.h"
+#include "base/prefs/pref_filter.h"
#include "base/threading/non_thread_safe.h"
#include "components/filesystem/public/interfaces/directory.mojom.h"
#include "components/filesystem/public/interfaces/file.mojom.h"
#include "components/filesystem/public/interfaces/file_system.mojom.h"
#include "components/filesystem/public/interfaces/types.mojom.h"
-#include "components/prefs/base_prefs_export.h"
-#include "components/prefs/persistent_pref_store.h"
-#include "components/prefs/pref_filter.h"
#include "mojo/public/cpp/bindings/binding.h"
class PrefFilter;
@@ -45,9 +45,9 @@ namespace filesystem {
// filesystem. Unlike base::JsonPrefStore, this class can safely be used inside
// a sandboxed process.
//
-// In the long run, we'll want to replace the current PrefService code with
-// something very different, especially since this component hard punts on all
-// the hard things that the preference service does (enterprise management,
+// In the long run, we'll want to replace the current base::PrefService code
+// with something very different, especially since this component hard punts on
+// all the hard things that the preference service does (enterprise management,
// parental controls, extension integration, etc.) and its interface is really
// not optimal for a mojoified world--there are a few places where we assume
// that writing to disk is synchronous...but it no longer is!
diff --git a/components/filesystem/public/cpp/prefs/pref_service_factory.cc b/components/filesystem/public/cpp/prefs/pref_service_factory.cc
index 8608b6e..b2209e7 100644
--- a/components/filesystem/public/cpp/prefs/pref_service_factory.cc
+++ b/components/filesystem/public/cpp/prefs/pref_service_factory.cc
@@ -5,13 +5,13 @@
#include "components/filesystem/public/cpp/prefs/pref_service_factory.h"
#include "base/bind.h"
+#include "base/prefs/pref_notifier_impl.h"
+#include "base/prefs/pref_registry.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/pref_value_store.h"
+#include "base/prefs/value_map_pref_store.h"
+#include "base/prefs/writeable_pref_store.h"
#include "components/filesystem/public/cpp/prefs/filesystem_json_pref_store.h"
-#include "components/prefs/pref_notifier_impl.h"
-#include "components/prefs/pref_registry.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/pref_value_store.h"
-#include "components/prefs/value_map_pref_store.h"
-#include "components/prefs/writeable_pref_store.h"
#include "mojo/shell/public/cpp/application_impl.h"
namespace filesystem {
diff --git a/components/filesystem/public/cpp/prefs/pref_service_factory.h b/components/filesystem/public/cpp/prefs/pref_service_factory.h
index 23780ff..ccf981e 100644
--- a/components/filesystem/public/cpp/prefs/pref_service_factory.h
+++ b/components/filesystem/public/cpp/prefs/pref_service_factory.h
@@ -6,7 +6,7 @@
#define COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_
#include "base/memory/scoped_ptr.h"
-#include "components/prefs/pref_service.h"
+#include "base/prefs/pref_service.h"
namespace mojo {
class ApplicationImpl;
diff --git a/components/flags_ui/DEPS b/components/flags_ui/DEPS
index 983d01e..e7e9488 100644
--- a/components/flags_ui/DEPS
+++ b/components/flags_ui/DEPS
@@ -1,6 +1,5 @@
include_rules = [
"+components/pref_registry",
- "+components/prefs",
"+grit/components_strings.h",
"+ui/base",
]
diff --git a/components/flags_ui/flags_state_unittest.cc b/components/flags_ui/flags_state_unittest.cc
index fc3c31f..88fa150 100644
--- a/components/flags_ui/flags_state_unittest.cc
+++ b/components/flags_ui/flags_state_unittest.cc
@@ -14,6 +14,8 @@
#include "base/feature_list.h"
#include "base/format_macros.h"
#include "base/macros.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/stl_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
@@ -23,8 +25,6 @@
#include "components/flags_ui/flags_ui_pref_names.h"
#include "components/flags_ui/flags_ui_switches.h"
#include "components/flags_ui/pref_service_flags_storage.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/testing_pref_service.h"
#include "grit/components_strings.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/components/flags_ui/pref_service_flags_storage.cc b/components/flags_ui/pref_service_flags_storage.cc
index 3932ded..7d817d3 100644
--- a/components/flags_ui/pref_service_flags_storage.cc
+++ b/components/flags_ui/pref_service_flags_storage.cc
@@ -4,13 +4,13 @@
#include "components/flags_ui/pref_service_flags_storage.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/scoped_user_pref_update.h"
#include "base/values.h"
#include "build/build_config.h"
#include "components/flags_ui/flags_ui_pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/scoped_user_pref_update.h"
namespace flags_ui {
diff --git a/components/gcm_driver/DEPS b/components/gcm_driver/DEPS
index 8f929c4..964bdca 100644
--- a/components/gcm_driver/DEPS
+++ b/components/gcm_driver/DEPS
@@ -2,7 +2,6 @@ include_rules = [
"+components/os_crypt",
"+components/keyed_service",
"+components/pref_registry",
- "+components/prefs",
"+components/signin",
"+components/sync_driver",
"+components/timers", # Only used for Chrome OS builds.
diff --git a/components/gcm_driver/gcm_channel_status_syncer.cc b/components/gcm_driver/gcm_channel_status_syncer.cc
index 4a3a239..f26008a 100644
--- a/components/gcm_driver/gcm_channel_status_syncer.cc
+++ b/components/gcm_driver/gcm_channel_status_syncer.cc
@@ -10,6 +10,8 @@
#include "base/command_line.h"
#include "base/location.h"
#include "base/logging.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
#include "base/rand_util.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
@@ -17,8 +19,6 @@
#include "components/gcm_driver/gcm_channel_status_request.h"
#include "components/gcm_driver/gcm_driver.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
namespace gcm {
diff --git a/components/gcm_driver/gcm_driver_desktop_unittest.cc b/components/gcm_driver/gcm_driver_desktop_unittest.cc
index b3fbe5e..9e29c33 100644
--- a/components/gcm_driver/gcm_driver_desktop_unittest.cc
+++ b/components/gcm_driver/gcm_driver_desktop_unittest.cc
@@ -12,6 +12,8 @@
#include "base/location.h"
#include "base/macros.h"
#include "base/metrics/field_trial.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/run_loop.h"
#include "base/strings/string_util.h"
#include "base/test/test_simple_task_runner.h"
@@ -26,8 +28,6 @@
#include "components/gcm_driver/gcm_channel_status_syncer.h"
#include "components/gcm_driver/gcm_client_factory.h"
#include "components/gcm_driver/gcm_connection_observer.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/testing_pref_service.h"
#include "net/url_request/test_url_fetcher_factory.h"
#include "net/url_request/url_fetcher_delegate.h"
#include "net/url_request/url_request_context_getter.h"
diff --git a/components/gcm_driver/gcm_profile_service.cc b/components/gcm_driver/gcm_profile_service.cc
index 0356adf..5ca79db 100644
--- a/components/gcm_driver/gcm_profile_service.cc
+++ b/components/gcm_driver/gcm_profile_service.cc
@@ -9,11 +9,11 @@
#include "base/logging.h"
#include "base/macros.h"
+#include "base/prefs/pref_service.h"
#include "build/build_config.h"
#include "components/gcm_driver/gcm_driver.h"
#include "components/gcm_driver/gcm_driver_constants.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
#if defined(OS_ANDROID)
#include "base/sequenced_task_runner.h"
diff --git a/components/google/DEPS b/components/google/DEPS
index 21c1e50..683dd04 100644
--- a/components/google/DEPS
+++ b/components/google/DEPS
@@ -1,5 +1,4 @@
include_rules = [
- "+components/prefs",
"+components/url_formatter",
"+net",
]
diff --git a/components/google/core/browser/google_url_tracker.cc b/components/google/core/browser/google_url_tracker.cc
index 9a21ca4..0b3e0b3 100644
--- a/components/google/core/browser/google_url_tracker.cc
+++ b/components/google/core/browser/google_url_tracker.cc
@@ -10,6 +10,7 @@
#include "base/command_line.h"
#include "base/location.h"
#include "base/macros.h"
+#include "base/prefs/pref_service.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/string_util.h"
#include "base/thread_task_runner_handle.h"
@@ -18,7 +19,6 @@
#include "components/google/core/browser/google_switches.h"
#include "components/google/core/browser/google_util.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
#include "net/base/load_flags.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request_status.h"
diff --git a/components/google/core/browser/google_url_tracker_unittest.cc b/components/google/core/browser/google_url_tracker_unittest.cc
index 03b34e2..e63d36d 100644
--- a/components/google/core/browser/google_url_tracker_unittest.cc
+++ b/components/google/core/browser/google_url_tracker_unittest.cc
@@ -9,12 +9,12 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/thread_task_runner_handle.h"
#include "components/google/core/browser/google_pref_names.h"
#include "components/google/core/browser/google_url_tracker_client.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/testing_pref_service.h"
#include "net/url_request/test_url_fetcher_factory.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request_test_util.h"
diff --git a/components/history/DEPS b/components/history/DEPS
index 01352e6..9111271 100644
--- a/components/history/DEPS
+++ b/components/history/DEPS
@@ -2,7 +2,6 @@ include_rules = [
"+components/favicon_base",
"+components/keyed_service",
"+components/query_parser",
- "+components/prefs",
"+components/signin/core",
"+components/sync_driver",
"+google_apis/gaia",
diff --git a/components/history/core/browser/expire_history_backend_unittest.cc b/components/history/core/browser/expire_history_backend_unittest.cc
index feb4933..149a92e 100644
--- a/components/history/core/browser/expire_history_backend_unittest.cc
+++ b/components/history/core/browser/expire_history_backend_unittest.cc
@@ -17,6 +17,8 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/scoped_observer.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
@@ -33,8 +35,6 @@
#include "components/history/core/test/test_history_database.h"
#include "components/history/core/test/thumbnail.h"
#include "components/history/core/test/wait_top_sites_loaded_observer.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
// The test must be in the history namespace for the gtest forward declarations
diff --git a/components/history/core/browser/history_backend_unittest.cc b/components/history/core/browser/history_backend_unittest.cc
index a1574fb..13bcad8 100644
--- a/components/history/core/browser/history_backend_unittest.cc
+++ b/components/history/core/browser/history_backend_unittest.cc
@@ -24,6 +24,7 @@
#include "base/metrics/histogram_base.h"
#include "base/metrics/histogram_samples.h"
#include "base/metrics/statistics_recorder.h"
+#include "base/prefs/pref_service.h"
#include "base/run_loop.h"
#include "base/strings/string16.h"
#include "base/strings/string_number_conversions.h"
@@ -45,7 +46,6 @@
#include "components/history/core/test/database_test_utils.h"
#include "components/history/core/test/history_client_fake_bookmarks.h"
#include "components/history/core/test/test_history_database.h"
-#include "components/prefs/pref_service.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
diff --git a/components/history/core/browser/top_sites_impl.cc b/components/history/core/browser/top_sites_impl.cc
index fb8e080..09458bf 100644
--- a/components/history/core/browser/top_sites_impl.cc
+++ b/components/history/core/browser/top_sites_impl.cc
@@ -16,6 +16,9 @@
#include "base/md5.h"
#include "base/memory/ref_counted_memory.h"
#include "base/metrics/histogram_macros.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/scoped_user_pref_update.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -31,9 +34,6 @@
#include "components/history/core/browser/top_sites_observer.h"
#include "components/history/core/browser/url_utils.h"
#include "components/history/core/common/thumbnail_score.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/scoped_user_pref_update.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/layout.h"
#include "ui/base/resource/resource_bundle.h"
diff --git a/components/history/core/browser/top_sites_impl_unittest.cc b/components/history/core/browser/top_sites_impl_unittest.cc
index a36357d..2efb4af 100644
--- a/components/history/core/browser/top_sites_impl_unittest.cc
+++ b/components/history/core/browser/top_sites_impl_unittest.cc
@@ -12,6 +12,8 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/message_loop/message_loop.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/cancelable_task_tracker.h"
#include "build/build_config.h"
@@ -27,8 +29,6 @@
#include "components/history/core/test/history_unittest_base.h"
#include "components/history/core/test/test_history_database.h"
#include "components/history/core/test/wait_top_sites_loaded_observer.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "url/gurl.h"
diff --git a/components/history/core/browser/typed_url_data_type_controller.cc b/components/history/core/browser/typed_url_data_type_controller.cc
index d833f02..462569f 100644
--- a/components/history/core/browser/typed_url_data_type_controller.cc
+++ b/components/history/core/browser/typed_url_data_type_controller.cc
@@ -7,9 +7,9 @@
#include "base/bind.h"
#include "base/callback.h"
#include "base/metrics/histogram.h"
+#include "base/prefs/pref_service.h"
#include "components/history/core/browser/history_db_task.h"
#include "components/history/core/browser/history_service.h"
-#include "components/prefs/pref_service.h"
#include "components/sync_driver/sync_client.h"
namespace browser_sync {
diff --git a/components/history/core/browser/typed_url_data_type_controller.h b/components/history/core/browser/typed_url_data_type_controller.h
index 9e84a35..58c4e8d 100644
--- a/components/history/core/browser/typed_url_data_type_controller.h
+++ b/components/history/core/browser/typed_url_data_type_controller.h
@@ -10,8 +10,8 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/prefs/pref_change_registrar.h"
#include "base/task/cancelable_task_tracker.h"
-#include "components/prefs/pref_change_registrar.h"
#include "components/sync_driver/non_ui_data_type_controller.h"
#include "components/sync_driver/sync_api_component_factory.h"
diff --git a/components/invalidation/DEPS b/components/invalidation/DEPS
index 05f988e..0fdd76d 100644
--- a/components/invalidation/DEPS
+++ b/components/invalidation/DEPS
@@ -2,6 +2,5 @@ include_rules = [
# Explicitly forbid //content even though it is not allowed presently.
"-content",
"-components/invalidation",
- "+components/prefs",
"+google/cacheinvalidation",
]
diff --git a/components/invalidation/impl/invalidator_storage.cc b/components/invalidation/impl/invalidator_storage.cc
index a06c2fc..6710854 100644
--- a/components/invalidation/impl/invalidator_storage.cc
+++ b/components/invalidation/impl/invalidator_storage.cc
@@ -12,12 +12,12 @@
#include "base/base64.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
#include "base/values.h"
#include "components/invalidation/impl/invalidation_prefs.h"
#include "components/invalidation/impl/unacked_invalidation_set.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
#include "google/cacheinvalidation/types.pb.h"
namespace {
diff --git a/components/invalidation/impl/invalidator_storage_unittest.cc b/components/invalidation/impl/invalidator_storage_unittest.cc
index 23fe0da..5a7b6bf 100644
--- a/components/invalidation/impl/invalidator_storage_unittest.cc
+++ b/components/invalidation/impl/invalidator_storage_unittest.cc
@@ -4,10 +4,10 @@
#include "components/invalidation/impl/invalidator_storage.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string_util.h"
#include "components/invalidation/impl/unacked_invalidation_set_test_util.h"
#include "components/pref_registry/testing_pref_service_syncable.h"
-#include "components/prefs/pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace invalidation {
diff --git a/components/invalidation/impl/ticl_profile_settings_provider.cc b/components/invalidation/impl/ticl_profile_settings_provider.cc
index e9424f2..1658c16 100644
--- a/components/invalidation/impl/ticl_profile_settings_provider.cc
+++ b/components/invalidation/impl/ticl_profile_settings_provider.cc
@@ -7,11 +7,11 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
+#include "base/prefs/pref_service.h"
#include "components/gcm_driver/gcm_channel_status_syncer.h"
#include "components/invalidation/impl/invalidation_prefs.h"
#include "components/invalidation/impl/invalidation_switches.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
namespace invalidation {
diff --git a/components/invalidation/impl/ticl_profile_settings_provider.h b/components/invalidation/impl/ticl_profile_settings_provider.h
index 15020ef..83841ba 100644
--- a/components/invalidation/impl/ticl_profile_settings_provider.h
+++ b/components/invalidation/impl/ticl_profile_settings_provider.h
@@ -7,8 +7,8 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
+#include "base/prefs/pref_change_registrar.h"
#include "components/invalidation/impl/ticl_settings_provider.h"
-#include "components/prefs/pref_change_registrar.h"
class PrefService;
diff --git a/components/invalidation/impl/ticl_profile_settings_provider_unittest.cc b/components/invalidation/impl/ticl_profile_settings_provider_unittest.cc
index 80ba9820..0f660d5 100644
--- a/components/invalidation/impl/ticl_profile_settings_provider_unittest.cc
+++ b/components/invalidation/impl/ticl_profile_settings_provider_unittest.cc
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
+#include "base/prefs/pref_service.h"
#include "components/gcm_driver/fake_gcm_driver.h"
#include "components/gcm_driver/gcm_channel_status_syncer.h"
#include "components/invalidation/impl/fake_invalidation_state_tracker.h"
@@ -16,7 +17,6 @@
#include "components/invalidation/impl/ticl_invalidation_service.h"
#include "components/invalidation/impl/ticl_settings_provider.h"
#include "components/pref_registry/testing_pref_service_syncable.h"
-#include "components/prefs/pref_service.h"
#include "google_apis/gaia/fake_identity_provider.h"
#include "google_apis/gaia/fake_oauth2_token_service.h"
#include "google_apis/gaia/identity_provider.h"
diff --git a/components/keyed_service/DEPS b/components/keyed_service/DEPS
index 4153fdb..5c12ca8 100644
--- a/components/keyed_service/DEPS
+++ b/components/keyed_service/DEPS
@@ -4,6 +4,5 @@ include_rules = [
"-components/keyed_service/content",
"+components/pref_registry",
- "+components/prefs",
"+components/user_prefs",
]
diff --git a/components/keyed_service/core/keyed_service_base_factory.cc b/components/keyed_service/core/keyed_service_base_factory.cc
index 9f0991d..3833d68 100644
--- a/components/keyed_service/core/keyed_service_base_factory.cc
+++ b/components/keyed_service/core/keyed_service_base_factory.cc
@@ -4,11 +4,11 @@
#include "components/keyed_service/core/keyed_service_base_factory.h"
+#include "base/prefs/pref_service.h"
#include "base/supports_user_data.h"
#include "base/trace_event/trace_event.h"
#include "components/keyed_service/core/dependency_manager.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
#include "components/user_prefs/user_prefs.h"
void KeyedServiceBaseFactory::RegisterUserPrefsOnContextForTest(
diff --git a/components/metrics/clean_exit_beacon.cc b/components/metrics/clean_exit_beacon.cc
index f90f2d0..1756467 100644
--- a/components/metrics/clean_exit_beacon.cc
+++ b/components/metrics/clean_exit_beacon.cc
@@ -5,9 +5,9 @@
#include "components/metrics/clean_exit_beacon.h"
#include "base/logging.h"
+#include "base/prefs/pref_service.h"
#include "build/build_config.h"
#include "components/metrics/metrics_pref_names.h"
-#include "components/prefs/pref_service.h"
#if defined(OS_WIN)
#include "base/metrics/histogram.h"
diff --git a/components/metrics/cloned_install_detector.cc b/components/metrics/cloned_install_detector.cc
index 7e9be8c..ff80116 100644
--- a/components/metrics/cloned_install_detector.cc
+++ b/components/metrics/cloned_install_detector.cc
@@ -12,12 +12,12 @@
#include "base/location.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/metrics_hashes.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
#include "base/single_thread_task_runner.h"
#include "base/task_runner_util.h"
#include "components/metrics/machine_id_provider.h"
#include "components/metrics/metrics_pref_names.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
namespace metrics {
diff --git a/components/metrics/cloned_install_detector_unittest.cc b/components/metrics/cloned_install_detector_unittest.cc
index 91b24e8..4c26479 100644
--- a/components/metrics/cloned_install_detector_unittest.cc
+++ b/components/metrics/cloned_install_detector_unittest.cc
@@ -4,10 +4,10 @@
#include "components/metrics/cloned_install_detector.h"
+#include "base/prefs/testing_pref_service.h"
#include "components/metrics/machine_id_provider.h"
#include "components/metrics/metrics_pref_names.h"
#include "components/metrics/metrics_state_manager.h"
-#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace metrics {
diff --git a/components/metrics/daily_event.cc b/components/metrics/daily_event.cc
index 42ba48c..0f9b68a 100644
--- a/components/metrics/daily_event.cc
+++ b/components/metrics/daily_event.cc
@@ -8,8 +8,8 @@
#include "base/i18n/time_formatting.h"
#include "base/metrics/histogram.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
namespace metrics {
diff --git a/components/metrics/daily_event_unittest.cc b/components/metrics/daily_event_unittest.cc
index 4adbaaf..741bab5 100644
--- a/components/metrics/daily_event_unittest.cc
+++ b/components/metrics/daily_event_unittest.cc
@@ -5,7 +5,7 @@
#include "components/metrics/daily_event.h"
#include "base/macros.h"
-#include "components/prefs/testing_pref_service.h"
+#include "base/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace metrics {
diff --git a/components/metrics/metrics_log.cc b/components/metrics/metrics_log.cc
index 9777412..728068f 100644
--- a/components/metrics/metrics_log.cc
+++ b/components/metrics/metrics_log.cc
@@ -17,6 +17,8 @@
#include "base/metrics/histogram.h"
#include "base/metrics/histogram_samples.h"
#include "base/metrics/metrics_hashes.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
#include "base/sha1.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
@@ -31,8 +33,6 @@
#include "components/metrics/proto/histogram_event.pb.h"
#include "components/metrics/proto/system_profile.pb.h"
#include "components/metrics/proto/user_action_event.pb.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
#include "components/variations/active_field_trials.h"
#if defined(OS_ANDROID)
diff --git a/components/prefs/BUILD.gn b/components/prefs/BUILD.gn
index fdbb5cf..0919fe3 100644
--- a/components/prefs/BUILD.gn
+++ b/components/prefs/BUILD.gn
@@ -4,6 +4,30 @@
component("prefs") {
sources = [
+ # Reference the forwarding headers so "gn check" can check them properly
+ # while we're transitioning from base to here.
+ "//base/prefs/base_prefs_export.h",
+ "//base/prefs/default_pref_store.h",
+ "//base/prefs/json_pref_store.h",
+ "//base/prefs/overlay_user_pref_store.h",
+ "//base/prefs/persistent_pref_store.h",
+ "//base/prefs/pref_change_registrar.h",
+ "//base/prefs/pref_filter.h",
+ "//base/prefs/pref_member.h",
+ "//base/prefs/pref_notifier.h",
+ "//base/prefs/pref_notifier_impl.h",
+ "//base/prefs/pref_observer.h",
+ "//base/prefs/pref_registry.h",
+ "//base/prefs/pref_registry_simple.h",
+ "//base/prefs/pref_service_factory.h",
+ "//base/prefs/pref_service.h",
+ "//base/prefs/pref_store.h",
+ "//base/prefs/pref_value_map.h",
+ "//base/prefs/pref_value_store.h",
+ "//base/prefs/scoped_user_pref_update.h",
+ "//base/prefs/value_map_pref_store.h",
+ "//base/prefs/writeable_pref_store.h",
+
"default_pref_store.cc",
"default_pref_store.h",
"json_pref_store.cc",
@@ -46,7 +70,7 @@ component("prefs") {
]
}
- defines = [ "COMPONENTS_PREFS_IMPLEMENTATION" ]
+ defines = [ "BASE_PREFS_IMPLEMENTATION" ]
deps = [
"//base",
@@ -61,6 +85,13 @@ component("prefs") {
source_set("test_support") {
testonly = true
sources = [
+ # Reference the forwarding headers so "gn check" can check them properly
+ # while we're transitioning from base to here.
+ "//base/prefs/mock_pref_change_callback.h",
+ "//base/prefs/pref_store_observer_mock.h",
+ "//base/prefs/testing_pref_service.h",
+ "//base/prefs/testing_pref_store.h",
+
"mock_pref_change_callback.cc",
"mock_pref_change_callback.h",
"pref_store_observer_mock.cc",
diff --git a/components/prefs/base_prefs_export.h b/components/prefs/base_prefs_export.h
index e047ad9..3d207db 100644
--- a/components/prefs/base_prefs_export.h
+++ b/components/prefs/base_prefs_export.h
@@ -2,28 +2,28 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_COMPONENTS_PREFS_EXPORT_H_
-#define COMPONENTS_PREFS_COMPONENTS_PREFS_EXPORT_H_
+#ifndef BASE_PREFS_BASE_PREFS_EXPORT_H_
+#define BASE_PREFS_BASE_PREFS_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
-#if defined(COMPONENTS_PREFS_IMPLEMENTATION)
-#define COMPONENTS_PREFS_EXPORT __declspec(dllexport)
+#if defined(BASE_PREFS_IMPLEMENTATION)
+#define BASE_PREFS_EXPORT __declspec(dllexport)
#else
-#define COMPONENTS_PREFS_EXPORT __declspec(dllimport)
-#endif // defined(COMPONENTS_PREFS_IMPLEMENTATION)
+#define BASE_PREFS_EXPORT __declspec(dllimport)
+#endif // defined(BASE_PREFS_IMPLEMENTATION)
#else // defined(WIN32)
-#if defined(COMPONENTS_PREFS_IMPLEMENTATION)
-#define COMPONENTS_PREFS_EXPORT __attribute__((visibility("default")))
+#if defined(BASE_PREFS_IMPLEMENTATION)
+#define BASE_PREFS_EXPORT __attribute__((visibility("default")))
#else
-#define COMPONENTS_PREFS_EXPORT
+#define BASE_PREFS_EXPORT
#endif
#endif
#else // defined(COMPONENT_BUILD)
-#define COMPONENTS_PREFS_EXPORT
+#define BASE_PREFS_EXPORT
#endif
-#endif // COMPONENTS_PREFS_COMPONENTS_PREFS_EXPORT_H_
+#endif // BASE_PREFS_BASE_PREFS_EXPORT_H_
diff --git a/components/prefs/default_pref_store.h b/components/prefs/default_pref_store.h
index 2e33889..af7306d 100644
--- a/components/prefs/default_pref_store.h
+++ b/components/prefs/default_pref_store.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_DEFAULT_PREF_STORE_H_
-#define COMPONENTS_PREFS_DEFAULT_PREF_STORE_H_
+#ifndef BASE_PREFS_DEFAULT_PREF_STORE_H_
+#define BASE_PREFS_DEFAULT_PREF_STORE_H_
#include <string>
@@ -15,7 +15,7 @@
#include "components/prefs/pref_value_map.h"
// Used within a PrefRegistry to keep track of default preference values.
-class COMPONENTS_PREFS_EXPORT DefaultPrefStore : public PrefStore {
+class BASE_PREFS_EXPORT DefaultPrefStore : public PrefStore {
public:
typedef PrefValueMap::const_iterator const_iterator;
@@ -50,4 +50,4 @@ class COMPONENTS_PREFS_EXPORT DefaultPrefStore : public PrefStore {
DISALLOW_COPY_AND_ASSIGN(DefaultPrefStore);
};
-#endif // COMPONENTS_PREFS_DEFAULT_PREF_STORE_H_
+#endif // BASE_PREFS_DEFAULT_PREF_STORE_H_
diff --git a/components/prefs/json_pref_store.h b/components/prefs/json_pref_store.h
index 4b19c95..30c1642 100644
--- a/components/prefs/json_pref_store.h
+++ b/components/prefs/json_pref_store.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_JSON_PREF_STORE_H_
-#define COMPONENTS_PREFS_JSON_PREF_STORE_H_
+#ifndef BASE_PREFS_JSON_PREF_STORE_H_
+#define BASE_PREFS_JSON_PREF_STORE_H_
#include <stdint.h>
@@ -41,7 +41,7 @@ FORWARD_DECLARE_TEST(JsonPrefStoreTest, WriteCountHistogramTestPeriodWithGaps);
}
// A writable PrefStore implementation that is used for user preferences.
-class COMPONENTS_PREFS_EXPORT JsonPrefStore
+class BASE_PREFS_EXPORT JsonPrefStore
: public PersistentPrefStore,
public base::ImportantFileWriter::DataSerializer,
public base::SupportsWeakPtr<JsonPrefStore>,
@@ -114,7 +114,7 @@ class COMPONENTS_PREFS_EXPORT JsonPrefStore
private:
// Represents a histogram for recording the number of writes to the pref file
// that occur every kHistogramWriteReportIntervalInMins minutes.
- class COMPONENTS_PREFS_EXPORT WriteCountHistogram {
+ class BASE_PREFS_EXPORT WriteCountHistogram {
public:
static const int32_t kHistogramWriteReportIntervalMins;
@@ -226,4 +226,4 @@ class COMPONENTS_PREFS_EXPORT JsonPrefStore
DISALLOW_COPY_AND_ASSIGN(JsonPrefStore);
};
-#endif // COMPONENTS_PREFS_JSON_PREF_STORE_H_
+#endif // BASE_PREFS_JSON_PREF_STORE_H_
diff --git a/components/prefs/mock_pref_change_callback.h b/components/prefs/mock_pref_change_callback.h
index 9c0aeec..b1ea0ad 100644
--- a/components/prefs/mock_pref_change_callback.h
+++ b/components/prefs/mock_pref_change_callback.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_MOCK_PREF_CHANGE_CALLBACK_H_
-#define COMPONENTS_PREFS_MOCK_PREF_CHANGE_CALLBACK_H_
+#ifndef BASE_PREFS_MOCK_PREF_CHANGE_CALLBACK_H_
+#define BASE_PREFS_MOCK_PREF_CHANGE_CALLBACK_H_
#include <string>
@@ -48,4 +48,4 @@ class MockPrefChangeCallback {
PrefService* prefs_;
};
-#endif // COMPONENTS_PREFS_MOCK_PREF_CHANGE_CALLBACK_H_
+#endif // BASE_PREFS_MOCK_PREF_CHANGE_CALLBACK_H_
diff --git a/components/prefs/overlay_user_pref_store.h b/components/prefs/overlay_user_pref_store.h
index 82d13a1..92875a6 100644
--- a/components/prefs/overlay_user_pref_store.h
+++ b/components/prefs/overlay_user_pref_store.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_OVERLAY_USER_PREF_STORE_H_
-#define COMPONENTS_PREFS_OVERLAY_USER_PREF_STORE_H_
+#ifndef BASE_PREFS_OVERLAY_USER_PREF_STORE_H_
+#define BASE_PREFS_OVERLAY_USER_PREF_STORE_H_
#include <stdint.h>
@@ -21,7 +21,7 @@
// PrefValueMap. Read operations are first answered by the PrefValueMap.
// If the PrefValueMap does not contain a value for the requested key,
// the look-up is passed on to an underlying PersistentPrefStore |underlay_|.
-class COMPONENTS_PREFS_EXPORT OverlayUserPrefStore : public PersistentPrefStore,
+class BASE_PREFS_EXPORT OverlayUserPrefStore : public PersistentPrefStore,
public PrefStore::Observer {
public:
explicit OverlayUserPrefStore(PersistentPrefStore* underlay);
@@ -86,4 +86,4 @@ class COMPONENTS_PREFS_EXPORT OverlayUserPrefStore : public PersistentPrefStore,
DISALLOW_COPY_AND_ASSIGN(OverlayUserPrefStore);
};
-#endif // COMPONENTS_PREFS_OVERLAY_USER_PREF_STORE_H_
+#endif // BASE_PREFS_OVERLAY_USER_PREF_STORE_H_
diff --git a/components/prefs/persistent_pref_store.h b/components/prefs/persistent_pref_store.h
index 1356f8e5..51d9656 100644
--- a/components/prefs/persistent_pref_store.h
+++ b/components/prefs/persistent_pref_store.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_PERSISTENT_PREF_STORE_H_
-#define COMPONENTS_PREFS_PERSISTENT_PREF_STORE_H_
+#ifndef BASE_PREFS_PERSISTENT_PREF_STORE_H_
+#define BASE_PREFS_PERSISTENT_PREF_STORE_H_
#include <string>
@@ -13,7 +13,7 @@
// This interface is complementary to the PrefStore interface, declaring
// additional functionality that adds support for setting values and persisting
// the data to some backing store.
-class COMPONENTS_PREFS_EXPORT PersistentPrefStore : public WriteablePrefStore {
+class BASE_PREFS_EXPORT PersistentPrefStore : public WriteablePrefStore {
public:
// Unique integer code for each type of error so we can report them
// distinctly in a histogram.
@@ -74,4 +74,4 @@ class COMPONENTS_PREFS_EXPORT PersistentPrefStore : public WriteablePrefStore {
~PersistentPrefStore() override {}
};
-#endif // COMPONENTS_PREFS_PERSISTENT_PREF_STORE_H_
+#endif // BASE_PREFS_PERSISTENT_PREF_STORE_H_
diff --git a/components/prefs/pref_change_registrar.h b/components/prefs/pref_change_registrar.h
index 2ae3b19..5e5b6a8 100644
--- a/components/prefs/pref_change_registrar.h
+++ b/components/prefs/pref_change_registrar.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_PREF_CHANGE_REGISTRAR_H_
-#define COMPONENTS_PREFS_PREF_CHANGE_REGISTRAR_H_
+#ifndef BASE_PREFS_PREF_CHANGE_REGISTRAR_H_
+#define BASE_PREFS_PREF_CHANGE_REGISTRAR_H_
#include <map>
#include <string>
@@ -19,7 +19,7 @@ class PrefService;
// with a PrefStore. Functions much like NotificationRegistrar, but specifically
// manages observers of preference changes. When the Registrar is destroyed,
// all registered observers are automatically unregistered with the PrefStore.
-class COMPONENTS_PREFS_EXPORT PrefChangeRegistrar : public PrefObserver {
+class BASE_PREFS_EXPORT PrefChangeRegistrar : public PrefObserver {
public:
// You can register this type of callback if you need to know the
// path of the preference that is changing.
@@ -78,4 +78,4 @@ class COMPONENTS_PREFS_EXPORT PrefChangeRegistrar : public PrefObserver {
DISALLOW_COPY_AND_ASSIGN(PrefChangeRegistrar);
};
-#endif // COMPONENTS_PREFS_PREF_CHANGE_REGISTRAR_H_
+#endif // BASE_PREFS_PREF_CHANGE_REGISTRAR_H_
diff --git a/components/prefs/pref_filter.h b/components/prefs/pref_filter.h
index 8fa6627..bb4847b 100644
--- a/components/prefs/pref_filter.h
+++ b/components/prefs/pref_filter.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_PREF_FILTER_H_
-#define COMPONENTS_PREFS_PREF_FILTER_H_
+#ifndef BASE_PREFS_PREF_FILTER_H_
+#define BASE_PREFS_PREF_FILTER_H_
#include <string>
@@ -18,7 +18,7 @@ class Value;
// Filters preferences as they are loaded from disk or updated at runtime.
// Currently supported only by JsonPrefStore.
-class COMPONENTS_PREFS_EXPORT PrefFilter {
+class BASE_PREFS_EXPORT PrefFilter {
public:
// A callback to be invoked when |prefs| have been read (and possibly
// pre-modified) and are now ready to be handed back to this callback's
@@ -52,4 +52,4 @@ class COMPONENTS_PREFS_EXPORT PrefFilter {
base::DictionaryValue* pref_store_contents) = 0;
};
-#endif // COMPONENTS_PREFS_PREF_FILTER_H_
+#endif // BASE_PREFS_PREF_FILTER_H_
diff --git a/components/prefs/pref_member.h b/components/prefs/pref_member.h
index f46e368..8ca9789 100644
--- a/components/prefs/pref_member.h
+++ b/components/prefs/pref_member.h
@@ -21,8 +21,8 @@
// notify MyClass of changes. Note that if you use SetValue(), the observer
// will not be notified.
-#ifndef COMPONENTS_PREFS_PREF_MEMBER_H_
-#define COMPONENTS_PREFS_PREF_MEMBER_H_
+#ifndef BASE_PREFS_PREF_MEMBER_H_
+#define BASE_PREFS_PREF_MEMBER_H_
#include <string>
#include <vector>
@@ -42,7 +42,7 @@ class PrefService;
namespace subtle {
-class COMPONENTS_PREFS_EXPORT PrefMemberBase : public PrefObserver {
+class BASE_PREFS_EXPORT PrefMemberBase : public PrefObserver {
public:
// Type of callback you can register if you need to know the name of
// the pref that is changing.
@@ -52,7 +52,7 @@ class COMPONENTS_PREFS_EXPORT PrefMemberBase : public PrefObserver {
const PrefService* prefs() const { return prefs_; }
protected:
- class COMPONENTS_PREFS_EXPORT Internal
+ class BASE_PREFS_EXPORT Internal
: public base::RefCountedThreadSafe<Internal> {
public:
Internal();
@@ -151,7 +151,7 @@ class COMPONENTS_PREFS_EXPORT PrefMemberBase : public PrefObserver {
// This function implements StringListPrefMember::UpdateValue().
// It is exposed here for testing purposes.
-bool COMPONENTS_PREFS_EXPORT PrefMemberVectorStringUpdate(
+bool BASE_PREFS_EXPORT PrefMemberVectorStringUpdate(
const base::Value& value,
std::vector<std::string>* string_vector);
@@ -263,7 +263,7 @@ class PrefMember : public subtle::PrefMemberBase {
protected:
~Internal() override {}
- COMPONENTS_PREFS_EXPORT bool UpdateValueInternal(
+ BASE_PREFS_EXPORT bool UpdateValueInternal(
const base::Value& value) const override;
// We cache the value of the pref so we don't have to keep walking the pref
@@ -278,7 +278,7 @@ class PrefMember : public subtle::PrefMemberBase {
void CreateInternal() const override { internal_ = new Internal(); }
// This method is used to do the actual sync with pref of the specified type.
- void COMPONENTS_PREFS_EXPORT UpdatePref(const ValueType& value);
+ void BASE_PREFS_EXPORT UpdatePref(const ValueType& value);
mutable scoped_refptr<Internal> internal_;
@@ -298,52 +298,50 @@ class PrefMember : public subtle::PrefMemberBase {
// --install --runhooks
template <>
-COMPONENTS_PREFS_EXPORT void PrefMember<bool>::UpdatePref(const bool& value);
+BASE_PREFS_EXPORT void PrefMember<bool>::UpdatePref(const bool& value);
template <>
-COMPONENTS_PREFS_EXPORT bool PrefMember<bool>::Internal::UpdateValueInternal(
+BASE_PREFS_EXPORT bool PrefMember<bool>::Internal::UpdateValueInternal(
const base::Value& value) const;
template <>
-COMPONENTS_PREFS_EXPORT void PrefMember<int>::UpdatePref(const int& value);
+BASE_PREFS_EXPORT void PrefMember<int>::UpdatePref(const int& value);
template <>
-COMPONENTS_PREFS_EXPORT bool PrefMember<int>::Internal::UpdateValueInternal(
+BASE_PREFS_EXPORT bool PrefMember<int>::Internal::UpdateValueInternal(
const base::Value& value) const;
template <>
-COMPONENTS_PREFS_EXPORT void
-PrefMember<double>::UpdatePref(const double& value);
+BASE_PREFS_EXPORT void PrefMember<double>::UpdatePref(const double& value);
template <>
-COMPONENTS_PREFS_EXPORT bool PrefMember<double>::Internal::UpdateValueInternal(
+BASE_PREFS_EXPORT bool PrefMember<double>::Internal::UpdateValueInternal(
const base::Value& value) const;
template <>
-COMPONENTS_PREFS_EXPORT void PrefMember<std::string>::UpdatePref(
+BASE_PREFS_EXPORT void PrefMember<std::string>::UpdatePref(
const std::string& value);
template <>
-COMPONENTS_PREFS_EXPORT bool
-PrefMember<std::string>::Internal::UpdateValueInternal(
+BASE_PREFS_EXPORT bool PrefMember<std::string>::Internal::UpdateValueInternal(
const base::Value& value) const;
template <>
-COMPONENTS_PREFS_EXPORT void PrefMember<base::FilePath>::UpdatePref(
+BASE_PREFS_EXPORT void PrefMember<base::FilePath>::UpdatePref(
const base::FilePath& value);
template <>
-COMPONENTS_PREFS_EXPORT bool
+BASE_PREFS_EXPORT bool
PrefMember<base::FilePath>::Internal::UpdateValueInternal(
const base::Value& value) const;
template <>
-COMPONENTS_PREFS_EXPORT void PrefMember<std::vector<std::string>>::UpdatePref(
+BASE_PREFS_EXPORT void PrefMember<std::vector<std::string> >::UpdatePref(
const std::vector<std::string>& value);
template <>
-COMPONENTS_PREFS_EXPORT bool
-PrefMember<std::vector<std::string>>::Internal::UpdateValueInternal(
+BASE_PREFS_EXPORT bool
+PrefMember<std::vector<std::string> >::Internal::UpdateValueInternal(
const base::Value& value) const;
typedef PrefMember<bool> BooleanPrefMember;
@@ -352,6 +350,6 @@ typedef PrefMember<double> DoublePrefMember;
typedef PrefMember<std::string> StringPrefMember;
typedef PrefMember<base::FilePath> FilePathPrefMember;
// This preference member is expensive for large string arrays.
-typedef PrefMember<std::vector<std::string>> StringListPrefMember;
+typedef PrefMember<std::vector<std::string> > StringListPrefMember;
-#endif // COMPONENTS_PREFS_PREF_MEMBER_H_
+#endif // BASE_PREFS_PREF_MEMBER_H_
diff --git a/components/prefs/pref_notifier.h b/components/prefs/pref_notifier.h
index 2abc213..e0df260 100644
--- a/components/prefs/pref_notifier.h
+++ b/components/prefs/pref_notifier.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_PREF_NOTIFIER_H_
-#define COMPONENTS_PREFS_PREF_NOTIFIER_H_
+#ifndef BASE_PREFS_PREF_NOTIFIER_H_
+#define BASE_PREFS_PREF_NOTIFIER_H_
#include <string>
@@ -23,4 +23,4 @@ class PrefNotifier {
virtual void OnInitializationCompleted(bool succeeded) = 0;
};
-#endif // COMPONENTS_PREFS_PREF_NOTIFIER_H_
+#endif // BASE_PREFS_PREF_NOTIFIER_H_
diff --git a/components/prefs/pref_notifier_impl.h b/components/prefs/pref_notifier_impl.h
index e0da264..bd26d03 100644
--- a/components/prefs/pref_notifier_impl.h
+++ b/components/prefs/pref_notifier_impl.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_PREF_NOTIFIER_IMPL_H_
-#define COMPONENTS_PREFS_PREF_NOTIFIER_IMPL_H_
+#ifndef BASE_PREFS_PREF_NOTIFIER_IMPL_H_
+#define BASE_PREFS_PREF_NOTIFIER_IMPL_H_
#include <list>
#include <string>
@@ -21,7 +21,7 @@
class PrefService;
// The PrefNotifier implementation used by the PrefService.
-class COMPONENTS_PREFS_EXPORT PrefNotifierImpl
+class BASE_PREFS_EXPORT PrefNotifierImpl
: public NON_EXPORTED_BASE(PrefNotifier) {
public:
PrefNotifierImpl();
@@ -71,4 +71,4 @@ class COMPONENTS_PREFS_EXPORT PrefNotifierImpl
DISALLOW_COPY_AND_ASSIGN(PrefNotifierImpl);
};
-#endif // COMPONENTS_PREFS_PREF_NOTIFIER_IMPL_H_
+#endif // BASE_PREFS_PREF_NOTIFIER_IMPL_H_
diff --git a/components/prefs/pref_observer.h b/components/prefs/pref_observer.h
index 3f48931..5d8f5b6 100644
--- a/components/prefs/pref_observer.h
+++ b/components/prefs/pref_observer.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_PREF_OBSERVER_H_
-#define COMPONENTS_PREFS_PREF_OBSERVER_H_
+#ifndef BASE_PREFS_PREF_OBSERVER_H_
+#define BASE_PREFS_PREF_OBSERVER_H_
#include <string>
@@ -18,4 +18,4 @@ class PrefObserver {
const std::string& pref_name) = 0;
};
-#endif // COMPONENTS_PREFS_PREF_OBSERVER_H_
+#endif // BASE_PREFS_PREF_OBSERVER_H_
diff --git a/components/prefs/pref_registry.h b/components/prefs/pref_registry.h
index 31a4956..56755ca 100644
--- a/components/prefs/pref_registry.h
+++ b/components/prefs/pref_registry.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_PREF_REGISTRY_H_
-#define COMPONENTS_PREFS_PREF_REGISTRY_H_
+#ifndef BASE_PREFS_PREF_REGISTRY_H_
+#define BASE_PREFS_PREF_REGISTRY_H_
#include <stdint.h>
@@ -29,8 +29,7 @@ class PrefStore;
//
// Currently, registrations after constructing the PrefService will
// also work, but this is being deprecated.
-class COMPONENTS_PREFS_EXPORT PrefRegistry
- : public base::RefCounted<PrefRegistry> {
+class BASE_PREFS_EXPORT PrefRegistry : public base::RefCounted<PrefRegistry> {
public:
// Registration flags that can be specified which impact how the pref will
// behave or be stored. This will be passed in a bitmask when the pref is
@@ -87,4 +86,4 @@ class COMPONENTS_PREFS_EXPORT PrefRegistry
DISALLOW_COPY_AND_ASSIGN(PrefRegistry);
};
-#endif // COMPONENTS_PREFS_PREF_REGISTRY_H_
+#endif // BASE_PREFS_PREF_REGISTRY_H_
diff --git a/components/prefs/pref_registry_simple.h b/components/prefs/pref_registry_simple.h
index e326787..4348029 100644
--- a/components/prefs/pref_registry_simple.h
+++ b/components/prefs/pref_registry_simple.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_PREF_REGISTRY_SIMPLE_H_
-#define COMPONENTS_PREFS_PREF_REGISTRY_SIMPLE_H_
+#ifndef BASE_PREFS_PREF_REGISTRY_SIMPLE_H_
+#define BASE_PREFS_PREF_REGISTRY_SIMPLE_H_
#include <stdint.h>
@@ -20,7 +20,7 @@ class ListValue;
}
// A simple implementation of PrefRegistry.
-class COMPONENTS_PREFS_EXPORT PrefRegistrySimple : public PrefRegistry {
+class BASE_PREFS_EXPORT PrefRegistrySimple : public PrefRegistry {
public:
PrefRegistrySimple();
@@ -88,4 +88,4 @@ class COMPONENTS_PREFS_EXPORT PrefRegistrySimple : public PrefRegistry {
DISALLOW_COPY_AND_ASSIGN(PrefRegistrySimple);
};
-#endif // COMPONENTS_PREFS_PREF_REGISTRY_SIMPLE_H_
+#endif // BASE_PREFS_PREF_REGISTRY_SIMPLE_H_
diff --git a/components/prefs/pref_service.h b/components/prefs/pref_service.h
index 50a827c..7b94cb6 100644
--- a/components/prefs/pref_service.h
+++ b/components/prefs/pref_service.h
@@ -8,8 +8,8 @@
// information and MUST not be extracted, overwritten or modified except
// through Chromium defined APIs.
-#ifndef COMPONENTS_PREFS_PREF_SERVICE_H_
-#define COMPONENTS_PREFS_PREF_SERVICE_H_
+#ifndef BASE_PREFS_PREF_SERVICE_H_
+#define BASE_PREFS_PREF_SERVICE_H_
#include <stdint.h>
@@ -51,7 +51,7 @@ class ScopedUserPrefUpdateBase;
// Settings and storage accessed through this class represent
// user-selected preferences and information and MUST not be
// extracted, overwritten or modified except through the defined APIs.
-class COMPONENTS_PREFS_EXPORT PrefService : public base::NonThreadSafe {
+class BASE_PREFS_EXPORT PrefService : public base::NonThreadSafe {
public:
enum PrefInitializationStatus {
INITIALIZATION_STATUS_WAITING,
@@ -61,7 +61,7 @@ class COMPONENTS_PREFS_EXPORT PrefService : public base::NonThreadSafe {
};
// A helper class to store all the information associated with a preference.
- class COMPONENTS_PREFS_EXPORT Preference {
+ class BASE_PREFS_EXPORT Preference {
public:
// The type of the preference is determined by the type with which it is
// registered. This type needs to be a boolean, integer, double, string,
@@ -382,4 +382,4 @@ class COMPONENTS_PREFS_EXPORT PrefService : public base::NonThreadSafe {
DISALLOW_COPY_AND_ASSIGN(PrefService);
};
-#endif // COMPONENTS_PREFS_PREF_SERVICE_H_
+#endif // BASE_PREFS_PREF_SERVICE_H_
diff --git a/components/prefs/pref_service_factory.cc b/components/prefs/pref_service_factory.cc
index 663695d..e8b9bb4 100644
--- a/components/prefs/pref_service_factory.cc
+++ b/components/prefs/pref_service_factory.cc
@@ -13,6 +13,8 @@
#include "components/prefs/pref_service.h"
#include "components/prefs/pref_value_store.h"
+namespace base {
+
namespace {
// Do-nothing default implementation.
@@ -59,3 +61,5 @@ scoped_ptr<PrefService> PrefServiceFactory::Create(
async_));
return pref_service;
}
+
+} // namespace base
diff --git a/components/prefs/pref_service_factory.h b/components/prefs/pref_service_factory.h
index bf7f56c..b56fb23 100644
--- a/components/prefs/pref_service_factory.h
+++ b/components/prefs/pref_service_factory.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_PREF_SERVICE_FACTORY_H_
-#define COMPONENTS_PREFS_PREF_SERVICE_FACTORY_H_
+#ifndef BASE_PREFS_PREF_SERVICE_FACTORY_H_
+#define BASE_PREFS_PREF_SERVICE_FACTORY_H_
#include "base/callback.h"
#include "base/macros.h"
@@ -16,12 +16,12 @@
class PrefService;
namespace base {
+
class FilePath;
class SequencedTaskRunner;
-}
// A class that allows convenient building of PrefService.
-class COMPONENTS_PREFS_EXPORT PrefServiceFactory {
+class BASE_PREFS_EXPORT PrefServiceFactory {
public:
PrefServiceFactory();
virtual ~PrefServiceFactory();
@@ -86,4 +86,6 @@ class COMPONENTS_PREFS_EXPORT PrefServiceFactory {
DISALLOW_COPY_AND_ASSIGN(PrefServiceFactory);
};
-#endif // COMPONENTS_PREFS_PREF_SERVICE_FACTORY_H_
+} // namespace base
+
+#endif // BASE_PREFS_PREF_SERVICE_FACTORY_H_
diff --git a/components/prefs/pref_service_unittest.cc b/components/prefs/pref_service_unittest.cc
index 77ecd19..8500cf6 100644
--- a/components/prefs/pref_service_unittest.cc
+++ b/components/prefs/pref_service_unittest.cc
@@ -284,7 +284,7 @@ class WriteFlagChecker : public TestingPrefStore {
TEST(PrefServiceTest, WriteablePrefStoreFlags) {
scoped_refptr<WriteFlagChecker> flag_checker(new WriteFlagChecker);
scoped_refptr<PrefRegistrySimple> registry(new PrefRegistrySimple);
- PrefServiceFactory factory;
+ base::PrefServiceFactory factory;
factory.set_user_prefs(flag_checker);
scoped_ptr<PrefService> prefs(factory.Create(registry.get()));
diff --git a/components/prefs/pref_store.h b/components/prefs/pref_store.h
index ef2bc49..6f0c16b 100644
--- a/components/prefs/pref_store.h
+++ b/components/prefs/pref_store.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_PREF_STORE_H_
-#define COMPONENTS_PREFS_PREF_STORE_H_
+#ifndef BASE_PREFS_PREF_STORE_H_
+#define BASE_PREFS_PREF_STORE_H_
#include <string>
@@ -22,10 +22,10 @@ class Value;
// CommandLinePrefStore, which bridges command line options to preferences and
// ConfigurationPolicyPrefStore, which is used for hooking up configuration
// policy with the preference subsystem.
-class COMPONENTS_PREFS_EXPORT PrefStore : public base::RefCounted<PrefStore> {
+class BASE_PREFS_EXPORT PrefStore : public base::RefCounted<PrefStore> {
public:
// Observer interface for monitoring PrefStore.
- class COMPONENTS_PREFS_EXPORT Observer {
+ class BASE_PREFS_EXPORT Observer {
public:
// Called when the value for the given |key| in the store changes.
virtual void OnPrefValueChanged(const std::string& key) = 0;
@@ -60,4 +60,4 @@ class COMPONENTS_PREFS_EXPORT PrefStore : public base::RefCounted<PrefStore> {
DISALLOW_COPY_AND_ASSIGN(PrefStore);
};
-#endif // COMPONENTS_PREFS_PREF_STORE_H_
+#endif // BASE_PREFS_PREF_STORE_H_
diff --git a/components/prefs/pref_store_observer_mock.h b/components/prefs/pref_store_observer_mock.h
index 01bd6a6..107aeb3 100644
--- a/components/prefs/pref_store_observer_mock.h
+++ b/components/prefs/pref_store_observer_mock.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_PREF_STORE_OBSERVER_MOCK_H_
-#define COMPONENTS_PREFS_PREF_STORE_OBSERVER_MOCK_H_
+#ifndef BASE_PREFS_PREF_STORE_OBSERVER_MOCK_H_
+#define BASE_PREFS_PREF_STORE_OBSERVER_MOCK_H_
#include <string>
#include <vector>
@@ -32,4 +32,4 @@ class PrefStoreObserverMock : public PrefStore::Observer {
DISALLOW_COPY_AND_ASSIGN(PrefStoreObserverMock);
};
-#endif // COMPONENTS_PREFS_PREF_STORE_OBSERVER_MOCK_H_
+#endif // BASE_PREFS_PREF_STORE_OBSERVER_MOCK_H_
diff --git a/components/prefs/pref_value_map.h b/components/prefs/pref_value_map.h
index 988a638..56c32b0 100644
--- a/components/prefs/pref_value_map.h
+++ b/components/prefs/pref_value_map.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_PREF_VALUE_MAP_H_
-#define COMPONENTS_PREFS_PREF_VALUE_MAP_H_
+#ifndef BASE_PREFS_PREF_VALUE_MAP_H_
+#define BASE_PREFS_PREF_VALUE_MAP_H_
#include <string>
#include <vector>
@@ -18,7 +18,7 @@ class Value;
}
// A generic string to value map used by the PrefStore implementations.
-class COMPONENTS_PREFS_EXPORT PrefValueMap {
+class BASE_PREFS_EXPORT PrefValueMap {
public:
using Map = base::ScopedPtrHashMap<std::string, scoped_ptr<base::Value>>;
using iterator = Map::iterator;
@@ -88,4 +88,4 @@ class COMPONENTS_PREFS_EXPORT PrefValueMap {
DISALLOW_COPY_AND_ASSIGN(PrefValueMap);
};
-#endif // COMPONENTS_PREFS_PREF_VALUE_MAP_H_
+#endif // BASE_PREFS_PREF_VALUE_MAP_H_
diff --git a/components/prefs/pref_value_store.h b/components/prefs/pref_value_store.h
index 39b6bf1..3a2bf15 100644
--- a/components/prefs/pref_value_store.h
+++ b/components/prefs/pref_value_store.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_PREF_VALUE_STORE_H_
-#define COMPONENTS_PREFS_PREF_VALUE_STORE_H_
+#ifndef BASE_PREFS_PREF_VALUE_STORE_H_
+#define BASE_PREFS_PREF_VALUE_STORE_H_
#include <map>
#include <string>
@@ -26,7 +26,7 @@ class PrefStore;
//
// Unless otherwise explicitly noted, all of the methods of this class must
// be called on the UI thread.
-class COMPONENTS_PREFS_EXPORT PrefValueStore {
+class BASE_PREFS_EXPORT PrefValueStore {
public:
typedef base::Callback<void(const std::string&)> PrefChangedCallback;
@@ -257,4 +257,4 @@ class COMPONENTS_PREFS_EXPORT PrefValueStore {
DISALLOW_COPY_AND_ASSIGN(PrefValueStore);
};
-#endif // COMPONENTS_PREFS_PREF_VALUE_STORE_H_
+#endif // BASE_PREFS_PREF_VALUE_STORE_H_
diff --git a/components/prefs/prefs.gyp b/components/prefs/prefs.gyp
index 554bef4f..ed9c58a 100644
--- a/components/prefs/prefs.gyp
+++ b/components/prefs/prefs.gyp
@@ -14,7 +14,7 @@
'../..',
],
'defines': [
- 'COMPONENTS_PREFS_IMPLEMENTATION',
+ 'BASE_PREFS_IMPLEMENTATION',
],
'sources': [
'default_pref_store.cc',
diff --git a/components/prefs/scoped_user_pref_update.h b/components/prefs/scoped_user_pref_update.h
index bfcdb3f..5a2c3ae 100644
--- a/components/prefs/scoped_user_pref_update.h
+++ b/components/prefs/scoped_user_pref_update.h
@@ -5,8 +5,8 @@
// A helper class that assists preferences in firing notifications when lists
// or dictionaries are changed.
-#ifndef COMPONENTS_PREFS_SCOPED_USER_PREF_UPDATE_H_
-#define COMPONENTS_PREFS_SCOPED_USER_PREF_UPDATE_H_
+#ifndef BASE_PREFS_SCOPED_USER_PREF_UPDATE_H_
+#define BASE_PREFS_SCOPED_USER_PREF_UPDATE_H_
#include <string>
@@ -31,8 +31,7 @@ namespace subtle {
// We need this base class mostly for making it a friend of PrefService
// and getting access to PrefService::GetMutableUserPref and
// PrefService::ReportUserPrefChanged.
-class COMPONENTS_PREFS_EXPORT ScopedUserPrefUpdateBase
- : public base::NonThreadSafe {
+class BASE_PREFS_EXPORT ScopedUserPrefUpdateBase : public base::NonThreadSafe {
protected:
ScopedUserPrefUpdateBase(PrefService* service, const std::string& path);
@@ -106,4 +105,4 @@ typedef ScopedUserPrefUpdate<base::DictionaryValue,
typedef ScopedUserPrefUpdate<base::ListValue, base::Value::TYPE_LIST>
ListPrefUpdate;
-#endif // COMPONENTS_PREFS_SCOPED_USER_PREF_UPDATE_H_
+#endif // BASE_PREFS_SCOPED_USER_PREF_UPDATE_H_
diff --git a/components/prefs/testing_pref_service.h b/components/prefs/testing_pref_service.h
index 7568589..5391c51 100644
--- a/components/prefs/testing_pref_service.h
+++ b/components/prefs/testing_pref_service.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_TESTING_PREF_SERVICE_H_
-#define COMPONENTS_PREFS_TESTING_PREF_SERVICE_H_
+#ifndef BASE_PREFS_TESTING_PREF_SERVICE_H_
+#define BASE_PREFS_TESTING_PREF_SERVICE_H_
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -193,4 +193,4 @@ void TestingPrefServiceBase<SuperPrefService, ConstructionPrefRegistry>::
pref_store->RemoveValue(path, WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
}
-#endif // COMPONENTS_PREFS_TESTING_PREF_SERVICE_H_
+#endif // BASE_PREFS_TESTING_PREF_SERVICE_H_
diff --git a/components/prefs/testing_pref_store.h b/components/prefs/testing_pref_store.h
index ea21769..e2a5997 100644
--- a/components/prefs/testing_pref_store.h
+++ b/components/prefs/testing_pref_store.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_TESTING_PREF_STORE_H_
-#define COMPONENTS_PREFS_TESTING_PREF_STORE_H_
+#ifndef BASE_PREFS_TESTING_PREF_STORE_H_
+#define BASE_PREFS_TESTING_PREF_STORE_H_
#include <stdint.h>
@@ -111,4 +111,4 @@ class TestingPrefStore : public PersistentPrefStore {
DISALLOW_COPY_AND_ASSIGN(TestingPrefStore);
};
-#endif // COMPONENTS_PREFS_TESTING_PREF_STORE_H_
+#endif // BASE_PREFS_TESTING_PREF_STORE_H_
diff --git a/components/prefs/value_map_pref_store.h b/components/prefs/value_map_pref_store.h
index bddc641..517d07e 100644
--- a/components/prefs/value_map_pref_store.h
+++ b/components/prefs/value_map_pref_store.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_VALUE_MAP_PREF_STORE_H_
-#define COMPONENTS_PREFS_VALUE_MAP_PREF_STORE_H_
+#ifndef BASE_PREFS_VALUE_MAP_PREF_STORE_H_
+#define BASE_PREFS_VALUE_MAP_PREF_STORE_H_
#include <stdint.h>
@@ -18,7 +18,7 @@
// A basic PrefStore implementation that uses a simple name-value map for
// storing the preference values.
-class COMPONENTS_PREFS_EXPORT ValueMapPrefStore : public WriteablePrefStore {
+class BASE_PREFS_EXPORT ValueMapPrefStore : public WriteablePrefStore {
public:
ValueMapPrefStore();
@@ -54,4 +54,4 @@ class COMPONENTS_PREFS_EXPORT ValueMapPrefStore : public WriteablePrefStore {
DISALLOW_COPY_AND_ASSIGN(ValueMapPrefStore);
};
-#endif // COMPONENTS_PREFS_VALUE_MAP_PREF_STORE_H_
+#endif // BASE_PREFS_VALUE_MAP_PREF_STORE_H_
diff --git a/components/prefs/writeable_pref_store.h b/components/prefs/writeable_pref_store.h
index 0cb9f83..94754d3 100644
--- a/components/prefs/writeable_pref_store.h
+++ b/components/prefs/writeable_pref_store.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PREFS_WRITEABLE_PREF_STORE_H_
-#define COMPONENTS_PREFS_WRITEABLE_PREF_STORE_H_
+#ifndef BASE_PREFS_WRITEABLE_PREF_STORE_H_
+#define BASE_PREFS_WRITEABLE_PREF_STORE_H_
#include <stdint.h>
@@ -18,7 +18,7 @@ class Value;
}
// A pref store that can be written to as well as read from.
-class COMPONENTS_PREFS_EXPORT WriteablePrefStore : public PrefStore {
+class BASE_PREFS_EXPORT WriteablePrefStore : public PrefStore {
public:
// PrefWriteFlags can be used to change the way a pref will be written to
// storage.
@@ -69,4 +69,4 @@ class COMPONENTS_PREFS_EXPORT WriteablePrefStore : public PrefStore {
DISALLOW_COPY_AND_ASSIGN(WriteablePrefStore);
};
-#endif // COMPONENTS_PREFS_WRITEABLE_PREF_STORE_H_
+#endif // BASE_PREFS_WRITEABLE_PREF_STORE_H_
diff --git a/components/syncable_prefs/pref_service_syncable_factory.h b/components/syncable_prefs/pref_service_syncable_factory.h
index 4695317..28970a7 100644
--- a/components/syncable_prefs/pref_service_syncable_factory.h
+++ b/components/syncable_prefs/pref_service_syncable_factory.h
@@ -29,7 +29,7 @@ class PrefServiceSyncable;
// A PrefServiceFactory that also knows how to build a
// PrefServiceSyncable, and may know about Chrome concepts such as
// PolicyService.
-class PrefServiceSyncableFactory : public PrefServiceFactory {
+class PrefServiceSyncableFactory : public base::PrefServiceFactory {
public:
PrefServiceSyncableFactory();
~PrefServiceSyncableFactory() override;
diff --git a/extensions/DEPS b/extensions/DEPS
index 52dbb3f..ebf4915 100644
--- a/extensions/DEPS
+++ b/extensions/DEPS
@@ -3,7 +3,6 @@ include_rules = [
"+components/browsing_data",
"+components/crx_file",
"+components/guest_view",
- "+components/prefs",
"+components/url_matcher",
"-content",
"+content/grit/content_resources.h",
diff --git a/extensions/browser/app_window/app_window.cc b/extensions/browser/app_window/app_window.cc
index e328ecf..11a3dc7 100644
--- a/extensions/browser/app_window/app_window.cc
+++ b/extensions/browser/app_window/app_window.cc
@@ -57,7 +57,7 @@
#include "ui/gfx/screen.h"
#if !defined(OS_MACOSX)
-#include "components/prefs/pref_service.h"
+#include "base/prefs/pref_service.h"
#include "extensions/browser/pref_names.h"
#endif
diff --git a/extensions/browser/app_window/app_window_geometry_cache_unittest.cc b/extensions/browser/app_window/app_window_geometry_cache_unittest.cc
index 491f614..edf1467 100644
--- a/extensions/browser/app_window/app_window_geometry_cache_unittest.cc
+++ b/extensions/browser/app_window/app_window_geometry_cache_unittest.cc
@@ -10,11 +10,11 @@
#include "base/files/file_path.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/mock_pref_change_callback.h"
+#include "base/prefs/pref_service_factory.h"
+#include "base/prefs/testing_pref_store.h"
#include "base/strings/string_number_conversions.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/mock_pref_change_callback.h"
-#include "components/prefs/pref_service_factory.h"
-#include "components/prefs/testing_pref_store.h"
#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_browser_thread.h"
#include "content/public/test/test_utils.h"
@@ -85,7 +85,7 @@ void AppWindowGeometryCacheTest::SetUp() {
// Set up all the dependencies of ExtensionPrefs.
extension_pref_value_map_.reset(new ExtensionPrefValueMap);
- PrefServiceFactory factory;
+ base::PrefServiceFactory factory;
factory.set_user_prefs(new TestingPrefStore);
factory.set_extension_prefs(new TestingPrefStore);
user_prefs::PrefRegistrySyncable* pref_registry =
diff --git a/extensions/browser/extension_pref_store.h b/extensions/browser/extension_pref_store.h
index 3585c33..f8acc7a 100644
--- a/extensions/browser/extension_pref_store.h
+++ b/extensions/browser/extension_pref_store.h
@@ -8,7 +8,7 @@
#include <string>
#include "base/macros.h"
-#include "components/prefs/value_map_pref_store.h"
+#include "base/prefs/value_map_pref_store.h"
#include "extensions/browser/extension_pref_value_map.h"
// A (non-persistent) PrefStore implementation that holds effective preferences
diff --git a/extensions/browser/extension_pref_value_map.cc b/extensions/browser/extension_pref_value_map.cc
index bb1fde5..7d238aa 100644
--- a/extensions/browser/extension_pref_value_map.cc
+++ b/extensions/browser/extension_pref_value_map.cc
@@ -4,8 +4,8 @@
#include "extensions/browser/extension_pref_value_map.h"
+#include "base/prefs/pref_value_map.h"
#include "base/values.h"
-#include "components/prefs/pref_value_map.h"
using extensions::ExtensionPrefsScope;
diff --git a/extensions/browser/extension_pref_value_map_unittest.cc b/extensions/browser/extension_pref_value_map_unittest.cc
index 984448b..8a546125 100644
--- a/extensions/browser/extension_pref_value_map_unittest.cc
+++ b/extensions/browser/extension_pref_value_map_unittest.cc
@@ -7,8 +7,8 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/pref_store_observer_mock.h"
#include "base/values.h"
-#include "components/prefs/pref_store_observer_mock.h"
#include "extensions/browser/extension_pref_value_map.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/extensions/browser/extension_prefs.cc b/extensions/browser/extension_prefs.cc
index 37f9842..30eb1dc 100644
--- a/extensions/browser/extension_prefs.cc
+++ b/extensions/browser/extension_prefs.cc
@@ -12,13 +12,13 @@
#include "base/macros.h"
#include "base/metrics/histogram_macros.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "components/crx_file/id_util.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
#include "extensions/browser/app_sorting.h"
#include "extensions/browser/event_router.h"
#include "extensions/browser/extension_pref_store.h"
diff --git a/extensions/browser/extension_prefs.h b/extensions/browser/extension_prefs.h
index 80b5e37..b20afc4 100644
--- a/extensions/browser/extension_prefs.h
+++ b/extensions/browser/extension_prefs.h
@@ -13,10 +13,10 @@
#include "base/memory/linked_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
+#include "base/prefs/scoped_user_pref_update.h"
#include "base/time/time.h"
#include "base/values.h"
#include "components/keyed_service/core/keyed_service.h"
-#include "components/prefs/scoped_user_pref_update.h"
#include "extensions/browser/blacklist_state.h"
#include "extensions/browser/extension_scoped_prefs.h"
#include "extensions/browser/install_flag.h"
diff --git a/extensions/browser/extension_prefs_factory.cc b/extensions/browser/extension_prefs_factory.cc
index 888d9bd..e110bad 100644
--- a/extensions/browser/extension_prefs_factory.cc
+++ b/extensions/browser/extension_prefs_factory.cc
@@ -7,8 +7,8 @@
#include <utility>
#include "base/command_line.h"
+#include "base/prefs/pref_service.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
-#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_context.h"
#include "extensions/browser/extension_pref_value_map.h"
#include "extensions/browser/extension_pref_value_map_factory.h"
diff --git a/extensions/browser/lazy_background_task_queue_unittest.cc b/extensions/browser/lazy_background_task_queue_unittest.cc
index a2b82eb..a54e313 100644
--- a/extensions/browser/lazy_background_task_queue_unittest.cc
+++ b/extensions/browser/lazy_background_task_queue_unittest.cc
@@ -7,9 +7,9 @@
#include "base/bind.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/testing_pref_service.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/pref_registry/testing_pref_service_syncable.h"
-#include "components/prefs/testing_pref_service.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/browser/notification_service.h"
#include "content/public/test/test_browser_context.h"
diff --git a/extensions/shell/browser/shell_browser_main_parts.cc b/extensions/shell/browser/shell_browser_main_parts.cc
index df6dc98..55aee81 100644
--- a/extensions/shell/browser/shell_browser_main_parts.cc
+++ b/extensions/shell/browser/shell_browser_main_parts.cc
@@ -7,11 +7,11 @@
#include <string>
#include "base/command_line.h"
+#include "base/prefs/pref_service.h"
#include "base/run_loop.h"
#include "build/build_config.h"
#include "components/devtools_http_handler/devtools_http_handler.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
-#include "components/prefs/pref_service.h"
#include "components/storage_monitor/storage_monitor.h"
#include "components/update_client/update_query_params.h"
#include "content/public/browser/child_process_security_policy.h"
diff --git a/extensions/shell/browser/shell_prefs.cc b/extensions/shell/browser/shell_prefs.cc
index 82185cfc..fdbc656 100644
--- a/extensions/shell/browser/shell_prefs.cc
+++ b/extensions/shell/browser/shell_prefs.cc
@@ -4,13 +4,13 @@
#include "extensions/shell/browser/shell_prefs.h"
+#include "base/prefs/json_pref_store.h"
+#include "base/prefs/pref_filter.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/pref_service_factory.h"
#include "build/build_config.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/json_pref_store.h"
-#include "components/prefs/pref_filter.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/pref_service_factory.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
@@ -53,7 +53,7 @@ scoped_ptr<PrefService> CreateLocalState(const FilePath& data_dir) {
scoped_refptr<JsonPrefStore> pref_store = CreateAndLoadPrefStore(filepath);
// Local state is considered "user prefs" from the factory's perspective.
- PrefServiceFactory factory;
+ base::PrefServiceFactory factory;
factory.set_user_prefs(pref_store);
// Local state preferences are not syncable.
@@ -68,7 +68,7 @@ scoped_ptr<PrefService> CreateUserPrefService(
FilePath filepath = browser_context->GetPath().AppendASCII("user_prefs.json");
scoped_refptr<JsonPrefStore> pref_store = CreateAndLoadPrefStore(filepath);
- PrefServiceFactory factory;
+ base::PrefServiceFactory factory;
factory.set_user_prefs(pref_store);
// TODO(jamescook): If we want to support prefs that are set by extensions
diff --git a/extensions/shell/browser/shell_prefs_unittest.cc b/extensions/shell/browser/shell_prefs_unittest.cc
index 3f91f17..740c0ef 100644
--- a/extensions/shell/browser/shell_prefs_unittest.cc
+++ b/extensions/shell/browser/shell_prefs_unittest.cc
@@ -6,8 +6,8 @@
#include "base/macros.h"
#include "base/path_service.h"
+#include "base/prefs/pref_service.h"
#include "build/build_config.h"
-#include "components/prefs/pref_service.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_browser_thread_bundle.h"
diff --git a/ios/chrome/browser/DEPS b/ios/chrome/browser/DEPS
index 73a2669..5764658 100644
--- a/ios/chrome/browser/DEPS
+++ b/ios/chrome/browser/DEPS
@@ -43,7 +43,6 @@ include_rules = [
"+components/password_manager/core/common",
"+components/password_manager/sync/browser",
"+components/pref_registry",
- "+components/prefs",
"+components/profile_metrics",
"+components/proxy_config",
"+components/rappor",
diff --git a/ios/chrome/browser/application_context_impl.cc b/ios/chrome/browser/application_context_impl.cc
index 9ad4a79..eee2f06 100644
--- a/ios/chrome/browser/application_context_impl.cc
+++ b/ios/chrome/browser/application_context_impl.cc
@@ -12,6 +12,8 @@
#include "base/logging.h"
#include "base/macros.h"
#include "base/path_service.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
#include "base/time/default_tick_clock.h"
#include "base/tracked_objects.h"
#include "components/component_updater/component_updater_service.h"
@@ -26,8 +28,6 @@
#include "components/metrics_services_manager/metrics_services_manager.h"
#include "components/net_log/chrome_net_log.h"
#include "components/network_time/network_time_tracker.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
#include "components/translate/core/browser/translate_download_manager.h"
#include "components/update_client/configurator.h"
#include "components/update_client/update_query_params.h"
diff --git a/ios/chrome/browser/autocomplete/autocomplete_provider_client_impl.cc b/ios/chrome/browser/autocomplete/autocomplete_provider_client_impl.cc
index c0e9cbf..b3f933e 100644
--- a/ios/chrome/browser/autocomplete/autocomplete_provider_client_impl.cc
+++ b/ios/chrome/browser/autocomplete/autocomplete_provider_client_impl.cc
@@ -4,12 +4,12 @@
#include "ios/chrome/browser/autocomplete/autocomplete_provider_client_impl.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include "components/browser_sync/browser/profile_sync_service.h"
#include "components/history/core/browser/history_service.h"
#include "components/keyed_service/core/service_access_type.h"
#include "components/omnibox/browser/autocomplete_classifier.h"
-#include "components/prefs/pref_service.h"
#include "components/sync_driver/sync_service_utils.h"
#include "ios/chrome/browser/autocomplete/autocomplete_classifier_factory.h"
#include "ios/chrome/browser/autocomplete/in_memory_url_index_factory.h"
diff --git a/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc b/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc
index 4c6c556..b9cf90d 100644
--- a/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc
+++ b/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc
@@ -7,10 +7,10 @@
#include <utility>
#include "base/memory/singleton.h"
+#include "base/prefs/pref_service.h"
#include "components/keyed_service/core/service_access_type.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
#include "components/omnibox/browser/in_memory_url_index.h"
-#include "components/prefs/pref_service.h"
#include "ios/chrome/browser/bookmarks/bookmark_model_factory.h"
#include "ios/chrome/browser/browser_state/browser_state_otr_helper.h"
#include "ios/chrome/browser/chrome_url_constants.h"
diff --git a/ios/chrome/browser/autocomplete/shortcuts_backend_factory.cc b/ios/chrome/browser/autocomplete/shortcuts_backend_factory.cc
index 53b77ea..eb14bf1 100644
--- a/ios/chrome/browser/autocomplete/shortcuts_backend_factory.cc
+++ b/ios/chrome/browser/autocomplete/shortcuts_backend_factory.cc
@@ -5,11 +5,11 @@
#include "ios/chrome/browser/autocomplete/shortcuts_backend_factory.h"
#include "base/memory/singleton.h"
+#include "base/prefs/pref_service.h"
#include "components/keyed_service/core/service_access_type.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
#include "components/omnibox/browser/shortcuts_backend.h"
#include "components/omnibox/browser/shortcuts_constants.h"
-#include "components/prefs/pref_service.h"
#include "ios/chrome/browser/history/history_service_factory.h"
#include "ios/chrome/browser/pref_names.h"
#include "ios/chrome/browser/search_engines/template_url_service_factory.h"
diff --git a/ios/chrome/browser/bookmarks/bookmark_model_factory.cc b/ios/chrome/browser/bookmarks/bookmark_model_factory.cc
index 08ae8dc..d199a67 100644
--- a/ios/chrome/browser/bookmarks/bookmark_model_factory.cc
+++ b/ios/chrome/browser/bookmarks/bookmark_model_factory.cc
@@ -7,11 +7,11 @@
#include <utility>
#include "base/memory/singleton.h"
+#include "base/prefs/pref_service.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_utils.h"
#include "components/bookmarks/browser/startup_task_runner_service.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
-#include "components/prefs/pref_service.h"
#include "components/undo/bookmark_undo_service.h"
#include "ios/chrome/browser/bookmarks/bookmark_client_impl.h"
#include "ios/chrome/browser/bookmarks/startup_task_runner_service_factory.h"
diff --git a/ios/chrome/browser/bookmarks/bookmarks_utils.cc b/ios/chrome/browser/bookmarks/bookmarks_utils.cc
index 3c1085f..9d4f378 100644
--- a/ios/chrome/browser/bookmarks/bookmarks_utils.cc
+++ b/ios/chrome/browser/bookmarks/bookmarks_utils.cc
@@ -6,8 +6,8 @@
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
+#include "base/prefs/pref_service.h"
#include "components/bookmarks/browser/bookmark_model.h"
-#include "components/prefs/pref_service.h"
#include "ios/chrome/browser/bookmarks/bookmark_model_factory.h"
#include "ios/chrome/browser/pref_names.h"
#include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h"
diff --git a/ios/chrome/browser/browser_state/browser_state_info_cache.cc b/ios/chrome/browser/browser_state/browser_state_info_cache.cc
index 95130f0..ac6869c 100644
--- a/ios/chrome/browser/browser_state/browser_state_info_cache.cc
+++ b/ios/chrome/browser/browser_state/browser_state_info_cache.cc
@@ -11,9 +11,9 @@
#include "base/i18n/case_conversion.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/scoped_user_pref_update.h"
#include "base/values.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/scoped_user_pref_update.h"
#include "ios/chrome/browser/browser_state/browser_state_info_cache_observer.h"
#include "ios/chrome/browser/pref_names.h"
diff --git a/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.cc b/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.cc
index a91488d..1d3af81 100644
--- a/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.cc
+++ b/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.cc
@@ -11,6 +11,9 @@
#include "base/callback.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/json_pref_store.h"
+#include "base/prefs/pref_filter.h"
+#include "base/prefs/pref_service.h"
#include "base/sequenced_task_runner.h"
#include "base/threading/sequenced_worker_pool.h"
#include "base/threading/worker_pool.h"
@@ -20,9 +23,6 @@
#include "components/data_reduction_proxy/core/browser/data_store_impl.h"
#include "components/domain_reliability/monitor.h"
#include "components/net_log/chrome_net_log.h"
-#include "components/prefs/json_pref_store.h"
-#include "components/prefs/pref_filter.h"
-#include "components/prefs/pref_service.h"
#include "ios/chrome/browser/application_context.h"
#include "ios/chrome/browser/chrome_constants.h"
#include "ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_proxy_io_data.h"
diff --git a/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.h b/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.h
index c9449ea9..3461e59 100644
--- a/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.h
+++ b/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.h
@@ -8,7 +8,7 @@
#include "base/callback_forward.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "components/prefs/pref_store.h"
+#include "base/prefs/pref_store.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state_io_data.h"
#include "ios/chrome/browser/net/net_types.h"
diff --git a/ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc b/ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc
index ecf3eda..8a965a8 100644
--- a/ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc
+++ b/ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc
@@ -18,6 +18,7 @@
#include "base/logging.h"
#include "base/macros.h"
#include "base/path_service.h"
+#include "base/prefs/pref_service.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
@@ -30,7 +31,6 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h"
#include "components/metrics/metrics_pref_names.h"
#include "components/net_log/chrome_net_log.h"
-#include "components/prefs/pref_service.h"
#include "components/signin/core/common/signin_pref_names.h"
#include "components/sync_driver/pref_names.h"
#include "ios/chrome/browser/application_context.h"
diff --git a/ios/chrome/browser/browser_state/chrome_browser_state_io_data.h b/ios/chrome/browser/browser_state/chrome_browser_state_io_data.h
index 837cf9b..8218bff 100644
--- a/ios/chrome/browser/browser_state/chrome_browser_state_io_data.h
+++ b/ios/chrome/browser/browser_state/chrome_browser_state_io_data.h
@@ -15,8 +15,8 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "base/prefs/pref_member.h"
#include "components/content_settings/core/common/content_settings_types.h"
-#include "components/prefs/pref_member.h"
#include "ios/chrome/browser/ios_chrome_io_thread.h"
#include "ios/chrome/browser/net/net_types.h"
#include "net/cert/ct_verifier.h"
diff --git a/ios/chrome/browser/browser_state/off_the_record_chrome_browser_state_io_data.mm b/ios/chrome/browser/browser_state/off_the_record_chrome_browser_state_io_data.mm
index c5f1391..ca91041 100644
--- a/ios/chrome/browser/browser_state/off_the_record_chrome_browser_state_io_data.mm
+++ b/ios/chrome/browser/browser_state/off_the_record_chrome_browser_state_io_data.mm
@@ -12,10 +12,10 @@
#include "base/command_line.h"
#include "base/logging.h"
#include "base/mac/bind_objc_block.h"
+#include "base/prefs/pref_service.h"
#include "base/stl_util.h"
#include "base/threading/worker_pool.h"
#include "components/net_log/chrome_net_log.h"
-#include "components/prefs/pref_service.h"
#include "ios/chrome/browser/chrome_constants.h"
#include "ios/chrome/browser/ios_chrome_io_thread.h"
#include "ios/chrome/browser/net/cookie_util.h"
diff --git a/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.cc b/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.cc
index 0b43127..3485939 100644
--- a/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.cc
+++ b/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.cc
@@ -14,6 +14,7 @@
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/user_metrics.h"
+#include "base/prefs/pref_service.h"
#include "components/autofill/core/browser/personal_data_manager.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
@@ -23,7 +24,6 @@
#include "components/keyed_service/core/service_access_type.h"
#include "components/omnibox/browser/omnibox_pref_names.h"
#include "components/password_manager/core/browser/password_store.h"
-#include "components/prefs/pref_service.h"
#include "components/search_engines/template_url_service.h"
#include "components/sessions/core/tab_restore_service.h"
#include "ios/chrome/browser/application_context.h"
diff --git a/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h b/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h
index 0d5d9a3..aaf15d2 100644
--- a/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h
+++ b/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h
@@ -11,10 +11,10 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/observer_list.h"
+#include "base/prefs/pref_member.h"
#include "base/sequenced_task_runner_helpers.h"
#include "base/task/cancelable_task_tracker.h"
#include "base/time/time.h"
-#include "components/prefs/pref_member.h"
#include "components/search_engines/template_url_service.h"
#include "url/gurl.h"
#include "url/origin.h"
diff --git a/ios/chrome/browser/content_settings/host_content_settings_map_factory.cc b/ios/chrome/browser/content_settings/host_content_settings_map_factory.cc
index baf46ed..980b06c 100644
--- a/ios/chrome/browser/content_settings/host_content_settings_map_factory.cc
+++ b/ios/chrome/browser/content_settings/host_content_settings_map_factory.cc
@@ -5,9 +5,9 @@
#include "ios/chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "base/memory/singleton.h"
+#include "base/prefs/pref_service.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
-#include "components/prefs/pref_service.h"
#include "ios/chrome/browser/browser_state/browser_state_otr_helper.h"
#include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h"
diff --git a/ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_proxy_io_data.cc b/ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_proxy_io_data.cc
index babdeb6..11380ce 100644
--- a/ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_proxy_io_data.cc
+++ b/ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_proxy_io_data.cc
@@ -4,11 +4,11 @@
#include "ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_proxy_io_data.h"
+#include "base/prefs/pref_service.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config_retrieval_params.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
-#include "components/prefs/pref_service.h"
#include "ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_proxy_settings.h"
#include "ios/chrome/browser/pref_names.h"
#include "ios/web/public/web_client.h"
diff --git a/ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_proxy_settings.cc b/ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_proxy_settings.cc
index 658baf6..a5d348f 100644
--- a/ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_proxy_settings.cc
+++ b/ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_proxy_settings.cc
@@ -11,6 +11,8 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram_macros.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/scoped_user_pref_update.h"
#include "base/strings/string_util.h"
#include "base/time/time.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
@@ -20,8 +22,6 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
#include "components/data_reduction_proxy/core/browser/data_store.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/scoped_user_pref_update.h"
#include "components/proxy_config/proxy_config_pref_names.h"
#include "components/proxy_config/proxy_prefs.h"
#include "ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor.h"
diff --git a/ios/chrome/browser/geolocation/omnibox_geolocation_local_state.mm b/ios/chrome/browser/geolocation/omnibox_geolocation_local_state.mm
index c195f46..e4daa63 100644
--- a/ios/chrome/browser/geolocation/omnibox_geolocation_local_state.mm
+++ b/ios/chrome/browser/geolocation/omnibox_geolocation_local_state.mm
@@ -8,8 +8,8 @@
#include "base/logging.h"
#include "base/mac/scoped_nsobject.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
#include "ios/chrome/browser/application_context.h"
#import "ios/chrome/browser/geolocation/location_manager.h"
#import "ios/chrome/browser/pref_names.h"
diff --git a/ios/chrome/browser/geolocation/omnibox_geolocation_local_state_unittest.mm b/ios/chrome/browser/geolocation/omnibox_geolocation_local_state_unittest.mm
index 215d9ac..2a7c95a 100644
--- a/ios/chrome/browser/geolocation/omnibox_geolocation_local_state_unittest.mm
+++ b/ios/chrome/browser/geolocation/omnibox_geolocation_local_state_unittest.mm
@@ -6,7 +6,7 @@
#include "base/mac/scoped_nsobject.h"
#include "base/memory/scoped_ptr.h"
-#include "components/prefs/testing_pref_service.h"
+#include "base/prefs/testing_pref_service.h"
#include "ios/chrome/browser/geolocation/location_manager.h"
#include "ios/chrome/browser/geolocation/omnibox_geolocation_local_state.h"
#include "ios/chrome/test/ios_chrome_scoped_testing_local_state.h"
diff --git a/ios/chrome/browser/google/google_url_tracker_factory.cc b/ios/chrome/browser/google/google_url_tracker_factory.cc
index 0eef645..a88a29b 100644
--- a/ios/chrome/browser/google/google_url_tracker_factory.cc
+++ b/ios/chrome/browser/google/google_url_tracker_factory.cc
@@ -5,10 +5,10 @@
#include "ios/chrome/browser/google/google_url_tracker_factory.h"
#include "base/memory/singleton.h"
+#include "base/prefs/pref_service.h"
#include "components/google/core/browser/google_pref_names.h"
#include "components/google/core/browser/google_url_tracker.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
-#include "components/prefs/pref_service.h"
#include "ios/chrome/browser/browser_state/browser_state_otr_helper.h"
#include "ios/chrome/browser/google/google_url_tracker_client_impl.h"
#include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h"
diff --git a/ios/chrome/browser/history/history_service_factory.cc b/ios/chrome/browser/history/history_service_factory.cc
index ea07537..cebdaf5 100644
--- a/ios/chrome/browser/history/history_service_factory.cc
+++ b/ios/chrome/browser/history/history_service_factory.cc
@@ -7,13 +7,13 @@
#include <utility>
#include "base/memory/singleton.h"
+#include "base/prefs/pref_service.h"
#include "components/history/core/browser/history_database_params.h"
#include "components/history/core/browser/history_service.h"
#include "components/history/core/browser/visit_delegate.h"
#include "components/history/ios/browser/history_database_helper.h"
#include "components/keyed_service/core/service_access_type.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
-#include "components/prefs/pref_service.h"
#include "ios/chrome/browser/bookmarks/bookmark_model_factory.h"
#include "ios/chrome/browser/browser_state/browser_state_otr_helper.h"
#include "ios/chrome/browser/history/history_client_impl.h"
diff --git a/ios/chrome/browser/history/web_history_service_factory.cc b/ios/chrome/browser/history/web_history_service_factory.cc
index 322dcd5..27c1ddb 100644
--- a/ios/chrome/browser/history/web_history_service_factory.cc
+++ b/ios/chrome/browser/history/web_history_service_factory.cc
@@ -5,10 +5,10 @@
#include "ios/chrome/browser/history/web_history_service_factory.h"
#include "base/memory/singleton.h"
+#include "base/prefs/pref_service.h"
#include "components/browser_sync/browser/profile_sync_service.h"
#include "components/history/core/browser/web_history_service.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
-#include "components/prefs/pref_service.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#include "components/signin/core/browser/signin_manager.h"
#include "components/sync_driver/sync_service.h"
diff --git a/ios/chrome/browser/interstitials/ios_security_interstitial_page.mm b/ios/chrome/browser/interstitials/ios_security_interstitial_page.mm
index f441449..bde510c 100644
--- a/ios/chrome/browser/interstitials/ios_security_interstitial_page.mm
+++ b/ios/chrome/browser/interstitials/ios_security_interstitial_page.mm
@@ -5,7 +5,7 @@
#include "ios/chrome/browser/interstitials/ios_security_interstitial_page.h"
#include "base/logging.h"
-#include "components/prefs/pref_service.h"
+#include "base/prefs/pref_service.h"
#include "components/security_interstitials/core/common_string_util.h"
#include "components/security_interstitials/core/metrics_helper.h"
#include "grit/components_resources.h"
diff --git a/ios/chrome/browser/invalidation/ios_chrome_profile_invalidation_provider_factory.cc b/ios/chrome/browser/invalidation/ios_chrome_profile_invalidation_provider_factory.cc
index d270085..132d02e 100644
--- a/ios/chrome/browser/invalidation/ios_chrome_profile_invalidation_provider_factory.cc
+++ b/ios/chrome/browser/invalidation/ios_chrome_profile_invalidation_provider_factory.cc
@@ -9,6 +9,7 @@
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
+#include "base/prefs/pref_registry.h"
#include "components/gcm_driver/gcm_profile_service.h"
#include "components/invalidation/impl/invalidator_storage.h"
#include "components/invalidation/impl/profile_invalidation_provider.h"
@@ -16,7 +17,6 @@
#include "components/invalidation/impl/ticl_profile_settings_provider.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_registry.h"
#include "components/signin/core/browser/profile_identity_provider.h"
#include "components/signin/core/browser/signin_manager.h"
#include "ios/chrome/browser/services/gcm/ios_chrome_gcm_profile_service_factory.h"
diff --git a/ios/chrome/browser/ios_chrome_io_thread.cc b/ios/chrome/browser/ios_chrome_io_thread.cc
index e2376f2..477490f 100644
--- a/ios/chrome/browser/ios_chrome_io_thread.cc
+++ b/ios/chrome/browser/ios_chrome_io_thread.cc
@@ -18,6 +18,7 @@
#include "base/logging.h"
#include "base/macros.h"
#include "base/metrics/field_trial.h"
+#include "base/prefs/pref_service.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_piece.h"
@@ -30,7 +31,6 @@
#include "base/trace_event/trace_event.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/net_log/chrome_net_log.h"
-#include "components/prefs/pref_service.h"
#include "components/proxy_config/pref_proxy_config_tracker.h"
#include "components/variations/variations_associated_data.h"
#include "components/version_info/version_info.h"
diff --git a/ios/chrome/browser/ios_chrome_io_thread.h b/ios/chrome/browser/ios_chrome_io_thread.h
index e0b481d..878d28d 100644
--- a/ios/chrome/browser/ios_chrome_io_thread.h
+++ b/ios/chrome/browser/ios_chrome_io_thread.h
@@ -18,9 +18,9 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "base/prefs/pref_member.h"
#include "base/strings/string_piece.h"
#include "base/time/time.h"
-#include "components/prefs/pref_member.h"
#include "components/ssl_config/ssl_config_service_manager.h"
#include "ios/web/public/web_thread_delegate.h"
#include "net/base/network_change_notifier.h"
diff --git a/ios/chrome/browser/ios_chrome_main_parts.mm b/ios/chrome/browser/ios_chrome_main_parts.mm
index cab5c26..07f054b 100644
--- a/ios/chrome/browser/ios_chrome_main_parts.mm
+++ b/ios/chrome/browser/ios_chrome_main_parts.mm
@@ -9,6 +9,8 @@
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/path_service.h"
+#include "base/prefs/json_pref_store.h"
+#include "base/prefs/pref_service.h"
#include "base/time/default_tick_clock.h"
#include "components/content_settings/core/browser/cookie_settings.h"
#include "components/content_settings/core/common/content_settings_pattern.h"
@@ -19,8 +21,6 @@
#include "components/metrics/profiler/tracking_synchronizer.h"
#include "components/metrics_services_manager/metrics_services_manager.h"
#include "components/open_from_clipboard/clipboard_recent_content.h"
-#include "components/prefs/json_pref_store.h"
-#include "components/prefs/pref_service.h"
#include "components/rappor/rappor_service.h"
#include "components/translate/core/browser/translate_download_manager.h"
#include "components/variations/service/variations_service.h"
diff --git a/ios/chrome/browser/memory/memory_debugger_manager.mm b/ios/chrome/browser/memory/memory_debugger_manager.mm
index 1c4a037..e9e9acb 100644
--- a/ios/chrome/browser/memory/memory_debugger_manager.mm
+++ b/ios/chrome/browser/memory/memory_debugger_manager.mm
@@ -7,9 +7,9 @@
#include "base/ios/weak_nsobject.h"
#import "base/mac/bind_objc_block.h"
#include "base/mac/scoped_nsobject.h"
-#include "components/prefs/pref_member.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
+#include "base/prefs/pref_member.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
#import "ios/chrome/browser/memory/memory_debugger.h"
#import "ios/chrome/browser/pref_names.h"
diff --git a/ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor.cc b/ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor.cc
index e612332..0840dea 100644
--- a/ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor.cc
+++ b/ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor.cc
@@ -6,7 +6,7 @@
#include <stdint.h>
-#include "components/prefs/pref_service.h"
+#include "base/prefs/pref_service.h"
#include "ios/chrome/browser/application_context.h"
// static
diff --git a/ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor_unittest.cc b/ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor_unittest.cc
index d2ac247..279fd08 100644
--- a/ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor_unittest.cc
+++ b/ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor_unittest.cc
@@ -7,9 +7,9 @@
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/macros.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/testing_pref_service.h"
#include "components/metrics/metrics_pref_names.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/testing_pref_service.h"
#include "ios/chrome/test/ios_chrome_scoped_testing_local_state.h"
#include "ios/chrome/test/testing_application_context.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/ios/chrome/browser/metrics/ios_chrome_metrics_service_client.cc b/ios/chrome/browser/metrics/ios_chrome_metrics_service_client.cc
index 211f259..49fb58a 100644
--- a/ios/chrome/browser/metrics/ios_chrome_metrics_service_client.cc
+++ b/ios/chrome/browser/metrics/ios_chrome_metrics_service_client.cc
@@ -15,6 +15,8 @@
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
#include "base/process/process_metrics.h"
#include "base/rand_util.h"
#include "base/strings/string16.h"
@@ -33,8 +35,6 @@
#include "components/metrics/ui/screen_info_metrics_provider.h"
#include "components/metrics/url_constants.h"
#include "components/omnibox/browser/omnibox_metrics_provider.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
#include "components/signin/core/browser/signin_status_metrics_provider.h"
#include "components/variations/variations_associated_data.h"
#include "components/version_info/version_info.h"
diff --git a/ios/chrome/browser/metrics/ios_chrome_metrics_services_manager_client.cc b/ios/chrome/browser/metrics/ios_chrome_metrics_services_manager_client.cc
index 5c94899..76519a5 100644
--- a/ios/chrome/browser/metrics/ios_chrome_metrics_services_manager_client.cc
+++ b/ios/chrome/browser/metrics/ios_chrome_metrics_services_manager_client.cc
@@ -6,8 +6,8 @@
#include "base/command_line.h"
#include "base/logging.h"
+#include "base/prefs/pref_service.h"
#include "components/metrics/metrics_state_manager.h"
-#include "components/prefs/pref_service.h"
#include "components/rappor/rappor_service.h"
#include "components/variations/service/variations_service.h"
#include "ios/chrome/browser/application_context.h"
diff --git a/ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider_unittest.cc b/ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider_unittest.cc
index 2202f69..767e138 100644
--- a/ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider_unittest.cc
+++ b/ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider_unittest.cc
@@ -5,10 +5,10 @@
#include "ios/chrome/browser/metrics/ios_chrome_stability_metrics_provider.h"
#include "base/macros.h"
+#include "base/prefs/pref_service.h"
+#include "base/prefs/scoped_user_pref_update.h"
+#include "base/prefs/testing_pref_service.h"
#include "components/metrics/proto/system_profile.pb.h"
-#include "components/prefs/pref_service.h"
-#include "components/prefs/scoped_user_pref_update.h"
-#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
diff --git a/ios/chrome/browser/metrics/mobile_session_shutdown_metrics_provider_unittest.mm b/ios/chrome/browser/metrics/mobile_session_shutdown_metrics_provider_unittest.mm
index 09c8d0c..2074312 100644
--- a/ios/chrome/browser/metrics/mobile_session_shutdown_metrics_provider_unittest.mm
+++ b/ios/chrome/browser/metrics/mobile_session_shutdown_metrics_provider_unittest.mm
@@ -7,12 +7,12 @@
#include "base/bind.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/testing_pref_service.h"
#include "base/test/histogram_tester.h"
#include "components/metrics/metrics_pref_names.h"
#include "components/metrics/metrics_service.h"
#include "components/metrics/metrics_state_manager.h"
#include "components/metrics/test_metrics_service_client.h"
-#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest-param-test.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/ios/chrome/browser/net/http_server_properties_manager_factory.cc b/ios/chrome/browser/net/http_server_properties_manager_factory.cc
index e0d473b..59263a3 100644
--- a/ios/chrome/browser/net/http_server_properties_manager_factory.cc
+++ b/ios/chrome/browser/net/http_server_properties_manager_factory.cc
@@ -4,9 +4,9 @@
#include "ios/chrome/browser/net/http_server_properties_manager_factory.h"
+#include "base/prefs/pref_change_registrar.h"
+#include "base/prefs/pref_service.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_change_registrar.h"
-#include "components/prefs/pref_service.h"
#include "ios/chrome/browser/pref_names.h"
#include "ios/web/public/web_thread.h"
#include "net/http/http_server_properties_manager.h"
diff --git a/ios/chrome/browser/net/ios_chrome_http_user_agent_settings.cc b/ios/chrome/browser/net/ios_chrome_http_user_agent_settings.cc
index f3093c1..083d297 100644
--- a/ios/chrome/browser/net/ios_chrome_http_user_agent_settings.cc
+++ b/ios/chrome/browser/net/ios_chrome_http_user_agent_settings.cc
@@ -4,7 +4,7 @@
#include "ios/chrome/browser/net/ios_chrome_http_user_agent_settings.h"
-#include "components/prefs/pref_service.h"
+#include "base/prefs/pref_service.h"
#include "ios/chrome/browser/pref_names.h"
#include "ios/web/public/web_client.h"
#include "ios/web/public/web_thread.h"
diff --git a/ios/chrome/browser/net/ios_chrome_http_user_agent_settings.h b/ios/chrome/browser/net/ios_chrome_http_user_agent_settings.h
index 707ea00..ce40131 100644
--- a/ios/chrome/browser/net/ios_chrome_http_user_agent_settings.h
+++ b/ios/chrome/browser/net/ios_chrome_http_user_agent_settings.h
@@ -9,7 +9,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "components/prefs/pref_member.h"
+#include "base/prefs/pref_member.h"
#include "net/url_request/http_user_agent_settings.h"
class PrefService;
diff --git a/ios/chrome/browser/net/ios_chrome_network_delegate.cc b/ios/chrome/browser/net/ios_chrome_network_delegate.cc
index 3adf521..a375629 100644
--- a/ios/chrome/browser/net/ios_chrome_network_delegate.cc
+++ b/ios/chrome/browser/net/ios_chrome_network_delegate.cc
@@ -15,10 +15,10 @@
#include "base/metrics/sparse_histogram.h"
#include "base/metrics/user_metrics.h"
#include "base/path_service.h"
+#include "base/prefs/pref_member.h"
+#include "base/prefs/pref_service.h"
#include "base/profiler/scoped_tracker.h"
#include "components/domain_reliability/monitor.h"
-#include "components/prefs/pref_member.h"
-#include "components/prefs/pref_service.h"
#include "ios/chrome/browser/pref_names.h"
#include "ios/web/public/web_thread.h"
#include "net/base/load_flags.h"
diff --git a/ios/chrome/browser/passwords/credential_manager.h b/ios/chrome/browser/passwords/credential_manager.h
index d37d63e..9a0efce 100644
--- a/ios/chrome/browser/passwords/credential_manager.h
+++ b/ios/chrome/browser/passwords/credential_manager.h
@@ -12,12 +12,12 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "base/prefs/pref_member.h"
#include "components/password_manager/core/browser/credential_manager_password_form_manager.h"
#include "components/password_manager/core/browser/credential_manager_pending_request_task.h"
#include "components/password_manager/core/browser/credential_manager_pending_require_user_mediation_task.h"
#include "components/password_manager/core/browser/password_manager_client.h"
#include "components/password_manager/core/browser/password_store.h"
-#include "components/prefs/pref_member.h"
#include "ios/web/public/web_state/web_state_observer.h"
@class JSCredentialManager;
diff --git a/ios/chrome/browser/passwords/ios_chrome_password_manager_client.h b/ios/chrome/browser/passwords/ios_chrome_password_manager_client.h
index 2d7f10b..4af0cdb 100644
--- a/ios/chrome/browser/passwords/ios_chrome_password_manager_client.h
+++ b/ios/chrome/browser/passwords/ios_chrome_password_manager_client.h
@@ -6,9 +6,9 @@
#define IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_
#include "base/macros.h"
+#include "base/prefs/pref_member.h"
#import "components/password_manager/core/browser/password_manager_client.h"
#include "components/password_manager/sync/browser/sync_credentials_filter.h"
-#include "components/prefs/pref_member.h"
namespace ios {
class ChromeBrowserState;
diff --git a/ios/chrome/browser/prefs/browser_prefs.mm b/ios/chrome/browser/prefs/browser_prefs.mm
index 0ec7861..de59101 100644
--- a/ios/chrome/browser/prefs/browser_prefs.mm
+++ b/ios/chrome/browser/prefs/browser_prefs.mm
@@ -4,6 +4,7 @@
#include "ios/chrome/browser/prefs/browser_prefs.h"
+#include "base/prefs/pref_service.h"
#include "components/autofill/core/browser/autofill_manager.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.h"
@@ -14,7 +15,6 @@
#include "components/omnibox/browser/zero_suggest_provider.h"
#include "components/password_manager/core/browser/password_manager.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_service.h"
#include "components/proxy_config/pref_proxy_config_tracker_impl.h"
#include "components/rappor/rappor_service.h"
#include "components/search_engines/template_url_prepopulate_data.h"
diff --git a/ios/chrome/browser/prefs/ios_chrome_pref_service_factory.cc b/ios/chrome/browser/prefs/ios_chrome_pref_service_factory.cc
index 7fea3ee..3f0b416 100644
--- a/ios/chrome/browser/prefs/ios_chrome_pref_service_factory.cc
+++ b/ios/chrome/browser/prefs/ios_chrome_pref_service_factory.cc
@@ -8,10 +8,10 @@
#include "base/bind.h"
#include "base/metrics/histogram_macros.h"
-#include "components/prefs/json_pref_store.h"
-#include "components/prefs/persistent_pref_store.h"
-#include "components/prefs/pref_filter.h"
-#include "components/prefs/pref_service.h"
+#include "base/prefs/json_pref_store.h"
+#include "base/prefs/persistent_pref_store.h"
+#include "base/prefs/pref_filter.h"
+#include "base/prefs/pref_service.h"
#include "components/proxy_config/proxy_config_pref_names.h"
#include "components/search_engines/default_search_pref_migration.h"
#include "components/syncable_prefs/pref_service_syncable.h"
diff --git a/ios/chrome/browser/prefs/pref_observer_bridge.mm b/ios/chrome/browser/prefs/pref_observer_bridge.mm
index 4ba85bb..ebd82f7 100644
--- a/ios/chrome/browser/prefs/pref_observer_bridge.mm
+++ b/ios/chrome/browser/prefs/pref_observer_bridge.mm
@@ -5,7 +5,7 @@
#import "ios/chrome/browser/prefs/pref_observer_bridge.h"
#include "base/bind.h"
-#include "components/prefs/pref_change_registrar.h"
+#include "base/prefs/pref_change_registrar.h"
PrefObserverBridge::PrefObserverBridge(id<PrefObserverDelegate> delegate)
: delegate_(delegate) {
diff --git a/ios/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc b/ios/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
index d3c8be8..c34f9eb 100644
--- a/ios/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
+++ b/ios/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
@@ -15,6 +15,7 @@
#include "base/macros.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_piece.h"
#include "base/strings/stringprintf.h"
@@ -22,7 +23,6 @@
#include "base/time/time.h"
#include "base/values.h"
#include "components/google/core/browser/google_util.h"
-#include "components/prefs/pref_service.h"
#include "components/security_interstitials/core/controller_client.h"
#include "ios/chrome/browser/application_context.h"
#include "ios/chrome/browser/chrome_url_constants.h"
diff --git a/ios/chrome/browser/safe_browsing/safe_browsing_service.cc b/ios/chrome/browser/safe_browsing/safe_browsing_service.cc
index 5861e12..073d70b 100644
--- a/ios/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/ios/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -14,12 +14,12 @@
#include "base/macros.h"
#include "base/metrics/histogram_macros.h"
#include "base/path_service.h"
+#include "base/prefs/pref_change_registrar.h"
+#include "base/prefs/pref_service.h"
#include "base/stl_util.h"
#include "base/strings/string_util.h"
#include "base/threading/thread.h"
#include "base/threading/thread_restrictions.h"
-#include "components/prefs/pref_change_registrar.h"
-#include "components/prefs/pref_service.h"
#include "ios/chrome/browser/application_context.h"
#include "ios/chrome/browser/chrome_paths.h"
#include "ios/chrome/browser/chrome_switches.h"
diff --git a/ios/chrome/browser/safe_browsing/ui_manager.cc b/ios/chrome/browser/safe_browsing/ui_manager.cc
index f685735..115d4ce 100644
--- a/ios/chrome/browser/safe_browsing/ui_manager.cc
+++ b/ios/chrome/browser/safe_browsing/ui_manager.cc
@@ -10,11 +10,11 @@
#include "base/debug/leak_tracker.h"
#include "base/macros.h"
#include "base/metrics/histogram_macros.h"
+#include "base/prefs/pref_service.h"
#include "base/stl_util.h"
#include "base/strings/string_util.h"
#include "base/threading/thread.h"
#include "base/threading/thread_restrictions.h"
-#include "components/prefs/pref_service.h"
#include "ios/chrome/browser/pref_names.h"
#include "ios/chrome/browser/safe_browsing/metadata.pb.h"
#include "ios/chrome/browser/safe_browsing/ping_manager.h"
diff --git a/ios/chrome/browser/search_engines/search_engines_util.cc b/ios/chrome/browser/search_engines/search_engines_util.cc
index 75c3537..7d28154 100644
--- a/ios/chrome/browser/search_engines/search_engines_util.cc
+++ b/ios/chrome/browser/search_engines/search_engines_util.cc
@@ -7,7 +7,7 @@
#include <stddef.h>
#include "base/message_loop/message_loop.h"
-#include "components/prefs/pref_service.h"
+#include "base/prefs/pref_service.h"
#include "components/search_engines/search_engines_pref_names.h"
#include "components/search_engines/template_url_prepopulate_data.h"
#include "components/search_engines/template_url_service.h"
diff --git a/ios/chrome/browser/signin/browser_state_data_remover.mm b/ios/chrome/browser/signin/browser_state_data_remover.mm
index c9680f7..ffd3471 100644
--- a/ios/chrome/browser/signin/browser_state_data_remover.mm
+++ b/ios/chrome/browser/signin/browser_state_data_remover.mm
@@ -6,7 +6,7 @@
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
-#include "components/prefs/pref_service.h"
+#include "base/prefs/pref_service.h"
#include "components/signin/core/common/signin_pref_names.h"
#include "ios/chrome/browser/bookmarks/bookmarks_utils.h"
#import "ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.h"
diff --git a/ios/chrome/browser/signin/signin_client_impl.cc b/ios/chrome/browser/signin/signin_client_impl.cc
index 352f83c..5a18bba 100644
--- a/ios/chrome/browser/signin/signin_client_impl.cc
+++ b/ios/chrome/browser/signin/signin_client_impl.cc
@@ -11,11 +11,11 @@
#include "base/command_line.h"
#include "base/guid.h"
#include "base/logging.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include "components/content_settings/core/browser/cookie_settings.h"
#include "components/keyed_service/core/service_access_type.h"
#include "components/metrics/metrics_service.h"
-#include "components/prefs/pref_service.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#include "components/signin/core/browser/signin_cookie_changed_subscription.h"
#include "components/signin/core/browser/signin_header_helper.h"
diff --git a/ios/chrome/browser/signin/signin_manager_factory.cc b/ios/chrome/browser/signin/signin_manager_factory.cc
index 0449721..c38756e 100644
--- a/ios/chrome/browser/signin/signin_manager_factory.cc
+++ b/ios/chrome/browser/signin/signin_manager_factory.cc
@@ -7,10 +7,10 @@
#include <utility>
#include "base/memory/singleton.h"
+#include "base/prefs/pref_registry_simple.h"
#include "base/time/time.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/prefs/pref_registry_simple.h"
#include "components/signin/core/browser/signin_manager.h"
#include "components/signin/core/common/signin_pref_names.h"
#include "ios/chrome/browser/application_context.h"
diff --git a/ios/chrome/browser/ssl/ios_ssl_blocking_page.cc b/ios/chrome/browser/ssl/ios_ssl_blocking_page.cc
index 9c412ca..304af8d 100644
--- a/ios/chrome/browser/ssl/ios_ssl_blocking_page.cc
+++ b/ios/chrome/browser/ssl/ios_ssl_blocking_page.cc
@@ -7,9 +7,9 @@
#include <utility>
#include "base/metrics/histogram.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
-#include "components/prefs/pref_service.h"
#include "components/security_interstitials/core/metrics_helper.h"
#include "components/security_interstitials/core/ssl_error_ui.h"
#include "ios/chrome/browser/interstitials/ios_chrome_controller_client.h"
diff --git a/ios/chrome/browser/sync/sync_setup_service.cc b/ios/chrome/browser/sync/sync_setup_service.cc
index 42f94c7..083e005 100644
--- a/ios/chrome/browser/sync/sync_setup_service.cc
+++ b/ios/chrome/browser/sync/sync_setup_service.cc
@@ -8,7 +8,7 @@
#include "base/macros.h"
#include "base/metrics/histogram_macros.h"
-#include "components/prefs/pref_service.h"
+#include "base/prefs/pref_service.h"
#include "components/sync_driver/sync_prefs.h"
#include "components/sync_driver/sync_service.h"
#include "google_apis/gaia/google_service_auth_error.h"
diff --git a/ios/chrome/browser/translate/chrome_ios_translate_client.mm b/ios/chrome/browser/translate/chrome_ios_translate_client.mm
index 4a43fce..19fe8c0 100644
--- a/ios/chrome/browser/translate/chrome_ios_translate_client.mm
+++ b/ios/chrome/browser/translate/chrome_ios_translate_client.mm
@@ -8,8 +8,8 @@
#include <vector>
#include "base/logging.h"
+#include "base/prefs/pref_service.h"
#include "components/infobars/core/infobar.h"
-#include "components/prefs/pref_service.h"
#include "components/translate/core/browser/page_translated_details.h"
#include "components/translate/core/browser/translate_accept_languages.h"
#include "components/translate/core/browser/translate_infobar_delegate.h"
diff --git a/ios/chrome/browser/translate/translate_accept_languages_factory.cc b/ios/chrome/browser/translate/translate_accept_languages_factory.cc
index b9e0c5a..ef1a7ca 100644
--- a/ios/chrome/browser/translate/translate_accept_languages_factory.cc
+++ b/ios/chrome/browser/translate/translate_accept_languages_factory.cc
@@ -5,9 +5,9 @@
#include "ios/chrome/browser/translate/translate_accept_languages_factory.h"
#include "base/macros.h"
+#include "base/prefs/pref_service.h"
#include "components/keyed_service/core/keyed_service.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
-#include "components/prefs/pref_service.h"
#include "components/translate/core/browser/translate_accept_languages.h"
#include "ios/chrome/browser/browser_state/browser_state_otr_helper.h"
#include "ios/chrome/browser/pref_names.h"
diff --git a/ios/chrome/browser/ui/autofill/autofill_client_ios.mm b/ios/chrome/browser/ui/autofill/autofill_client_ios.mm
index eda7362..f54fb29 100644
--- a/ios/chrome/browser/ui/autofill/autofill_client_ios.mm
+++ b/ios/chrome/browser/ui/autofill/autofill_client_ios.mm
@@ -7,6 +7,7 @@
#include <utility>
#include "base/bind.h"
+#include "base/prefs/pref_service.h"
#include "components/autofill/core/browser/autofill_save_card_infobar_delegate_mobile.h"
#include "components/autofill/core/browser/autofill_save_card_infobar_mobile.h"
#include "components/autofill/core/browser/ui/card_unmask_prompt_view.h"
@@ -16,7 +17,6 @@
#include "components/infobars/core/infobar_manager.h"
#include "components/keyed_service/core/service_access_type.h"
#include "components/password_manager/core/browser/password_generation_manager.h"
-#include "components/prefs/pref_service.h"
#include "google_apis/gaia/identity_provider.h"
#include "ios/chrome/browser/autofill/personal_data_manager_factory.h"
#include "ios/chrome/browser/web_data_service_factory.h"
diff --git a/ios/chrome/browser/ui/webui/flags_ui.cc b/ios/chrome/browser/ui/webui/flags_ui.cc
index 148de05..e7ab94f 100644
--- a/ios/chrome/browser/ui/webui/flags_ui.cc
+++ b/ios/chrome/browser/ui/webui/flags_ui.cc
@@ -11,13 +11,13 @@
#include "base/bind_helpers.h"
#include "base/macros.h"
#include "base/memory/ref_counted_memory.h"
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "components/flags_ui/flags_ui_constants.h"
#include "components/flags_ui/flags_ui_pref_names.h"
#include "components/flags_ui/pref_service_flags_storage.h"
-#include "components/prefs/pref_registry_simple.h"
-#include "components/prefs/pref_service.h"
#include "components/version_info/version_info.h"
#include "grit/components_chromium_strings.h"
#include "grit/components_google_chrome_strings.h"
diff --git a/ios/chrome/browser/ui/webui/history/browsing_history_handler.cc b/ios/chrome/browser/ui/webui/history/browsing_history_handler.cc
index 1b415f9..ac90058 100644
--- a/ios/chrome/browser/ui/webui/history/browsing_history_handler.cc
+++ b/ios/chrome/browser/ui/webui/history/browsing_history_handler.cc
@@ -13,6 +13,7 @@
#include "base/i18n/rtl.h"
#include "base/i18n/time_formatting.h"
#include "base/metrics/histogram.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string16.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
@@ -26,7 +27,6 @@
#include "components/history/core/browser/top_sites.h"
#include "components/history/core/browser/web_history_service.h"
#include "components/keyed_service/core/service_access_type.h"
-#include "components/prefs/pref_service.h"
#include "components/sync_driver/device_info.h"
#include "components/sync_driver/device_info_tracker.h"
#include "components/url_formatter/url_formatter.h"
diff --git a/ios/chrome/test/DEPS b/ios/chrome/test/DEPS
index b9e8796..335ddd6 100644
--- a/ios/chrome/test/DEPS
+++ b/ios/chrome/test/DEPS
@@ -1,6 +1,5 @@
include_rules = [
"+components/network_time",
- "+components/prefs",
"+ios/chrome/browser",
"+ios/public/provider/chrome",
"+ios/public/test",
diff --git a/ios/chrome/test/ios_chrome_scoped_testing_local_state.h b/ios/chrome/test/ios_chrome_scoped_testing_local_state.h
index 77fe316..498cb92 100644
--- a/ios/chrome/test/ios_chrome_scoped_testing_local_state.h
+++ b/ios/chrome/test/ios_chrome_scoped_testing_local_state.h
@@ -6,7 +6,7 @@
#define IOS_CHROME_TEST_IOS_CHROME_SCOPED_TESTING_LOCAL_STATE_H_
#include "base/macros.h"
-#include "components/prefs/testing_pref_service.h"
+#include "base/prefs/testing_pref_service.h"
// Helper class to temporarily set up a |local_state| in the global
// TestingApplicationContext.
diff --git a/ios/crnet/DEPS b/ios/crnet/DEPS
index 6ac78a1..928073c 100644
--- a/ios/crnet/DEPS
+++ b/ios/crnet/DEPS
@@ -1,5 +1,4 @@
include_rules = [
- "+components/prefs",
"+components/webp_transcode",
"+crypto/nss_util.h",
"+ios/crnet",
diff --git a/ios/crnet/crnet_environment.mm b/ios/crnet/crnet_environment.mm
index da98875..939836a 100644
--- a/ios/crnet/crnet_environment.mm
+++ b/ios/crnet/crnet_environment.mm
@@ -21,9 +21,9 @@
#include "base/macros.h"
#include "base/metrics/statistics_recorder.h"
#include "base/path_service.h"
+#include "base/prefs/json_pref_store.h"
+#include "base/prefs/pref_filter.h"
#include "base/threading/worker_pool.h"
-#include "components/prefs/json_pref_store.h"
-#include "components/prefs/pref_filter.h"
#import "components/webp_transcode/webp_network_client_factory.h"
#include "crypto/nss_util.h"
#include "ios/crnet/sdch_owner_pref_storage.h"
diff --git a/ios/crnet/sdch_owner_pref_storage.cc b/ios/crnet/sdch_owner_pref_storage.cc
index 3af81f5..8230ed0 100644
--- a/ios/crnet/sdch_owner_pref_storage.cc
+++ b/ios/crnet/sdch_owner_pref_storage.cc
@@ -4,8 +4,8 @@
#include "ios/crnet/sdch_owner_pref_storage.h"
+#include "base/prefs/persistent_pref_store.h"
#include "base/values.h"
-#include "components/prefs/persistent_pref_store.h"
namespace {
diff --git a/ios/crnet/sdch_owner_pref_storage.h b/ios/crnet/sdch_owner_pref_storage.h
index fbb177e..16308cc 100644
--- a/ios/crnet/sdch_owner_pref_storage.h
+++ b/ios/crnet/sdch_owner_pref_storage.h
@@ -6,7 +6,7 @@
#define IOS_CRNET_SDCH_OWNER_PREF_STORAGE_H_
#include "base/macros.h"
-#include "components/prefs/pref_store.h"
+#include "base/prefs/pref_store.h"
#include "net/sdch/sdch_owner.h"
class PersistentPrefStore;
diff --git a/ios/web/DEPS b/ios/web/DEPS
index 8ed91b4..658bb67 100644
--- a/ios/web/DEPS
+++ b/ios/web/DEPS
@@ -1,5 +1,4 @@
include_rules = [
- "+components/prefs",
"+components/url_formatter",
"+crypto",
"+ios/public/provider/web",
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index 8a2cccc..4561448 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -25,12 +25,12 @@
#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram.h"
#include "base/metrics/user_metrics_action.h"
+#include "base/prefs/pref_service.h"
#include "base/strings/string_util.h"
#include "base/strings/sys_string_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "base/values.h"
-#include "components/prefs/pref_service.h"
#include "components/url_formatter/url_formatter.h"
#import "ios/net/nsurlrequest_util.h"
#include "ios/public/provider/web/web_ui_ios.h"
diff --git a/mash/DEPS b/mash/DEPS
index 7110e69..c2abdb2 100644
--- a/mash/DEPS
+++ b/mash/DEPS
@@ -2,7 +2,6 @@ include_rules = [
"+components/mus/common/types.h",
"+components/mus/common/util.h",
"+components/mus/public",
- "+components/prefs",
"+mojo/shell",
"+mojo/common",
"+mojo/converters",
diff --git a/mash/wallpaper/wallpaper.cc b/mash/wallpaper/wallpaper.cc
index 6739d10..311c4c7 100644
--- a/mash/wallpaper/wallpaper.cc
+++ b/mash/wallpaper/wallpaper.cc
@@ -3,9 +3,9 @@
// found in the LICENSE file.
#include "base/macros.h"
+#include "base/prefs/pref_registry_simple.h"
#include "components/filesystem/public/cpp/prefs/pref_service_factory.h"
#include "components/mus/public/cpp/property_type_converters.h"
-#include "components/prefs/pref_registry_simple.h"
#include "mash/wm/public/interfaces/container.mojom.h"
#include "mojo/public/c/system/main.h"
#include "mojo/services/tracing/public/cpp/tracing_impl.h"
diff --git a/third_party/libaddressinput/chromium/DEPS b/third_party/libaddressinput/chromium/DEPS
index b55c0fa..4f5c7cf 100644
--- a/third_party/libaddressinput/chromium/DEPS
+++ b/third_party/libaddressinput/chromium/DEPS
@@ -1,8 +1,7 @@
include_rules = [
'+base',
- "+components/prefs",
'+net',
'+testing',
'+third_party/icu',
'+url',
-]
+] \ No newline at end of file
diff --git a/third_party/libaddressinput/chromium/chrome_storage_impl.cc b/third_party/libaddressinput/chromium/chrome_storage_impl.cc
index 918d3f2..d85a2fd 100644
--- a/third_party/libaddressinput/chromium/chrome_storage_impl.cc
+++ b/third_party/libaddressinput/chromium/chrome_storage_impl.cc
@@ -7,8 +7,8 @@
#include <utility>
#include "base/memory/scoped_ptr.h"
+#include "base/prefs/writeable_pref_store.h"
#include "base/values.h"
-#include "components/prefs/writeable_pref_store.h"
#include "third_party/libaddressinput/chromium/fallback_data_store.h"
namespace autofill {
diff --git a/third_party/libaddressinput/chromium/chrome_storage_impl.h b/third_party/libaddressinput/chromium/chrome_storage_impl.h
index 6a08adc..c2eac2a 100644
--- a/third_party/libaddressinput/chromium/chrome_storage_impl.h
+++ b/third_party/libaddressinput/chromium/chrome_storage_impl.h
@@ -10,8 +10,8 @@
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
+#include "base/prefs/pref_store.h"
#include "base/scoped_observer.h"
-#include "components/prefs/pref_store.h"
#include "third_party/libaddressinput/src/cpp/include/libaddressinput/storage.h"
class WriteablePrefStore;
diff --git a/third_party/libaddressinput/chromium/chrome_storage_impl_unittest.cc b/third_party/libaddressinput/chromium/chrome_storage_impl_unittest.cc
index 629b8ff..277bfb9 100644
--- a/third_party/libaddressinput/chromium/chrome_storage_impl_unittest.cc
+++ b/third_party/libaddressinput/chromium/chrome_storage_impl_unittest.cc
@@ -6,7 +6,7 @@
#include <string>
-#include "components/prefs/value_map_pref_store.h"
+#include "base/prefs/value_map_pref_store.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/libaddressinput/chromium/storage_test_runner.h"
#include "third_party/libaddressinput/src/cpp/include/libaddressinput/callback.h"