| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/prefs/browser_prefs.h" | 5 #include "chrome/browser/prefs/browser_prefs.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 #include "components/gcm_driver/gcm_channel_status_syncer.h" | 79 #include "components/gcm_driver/gcm_channel_status_syncer.h" |
| 80 #include "components/metrics/metrics_service.h" | 80 #include "components/metrics/metrics_service.h" |
| 81 #include "components/network_time/network_time_tracker.h" | 81 #include "components/network_time/network_time_tracker.h" |
| 82 #include "components/ntp_snippets/content_suggestions_service.h" | 82 #include "components/ntp_snippets/content_suggestions_service.h" |
| 83 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h" | 83 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h" |
| 84 #include "components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h" | 84 #include "components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h" |
| 85 #include "components/ntp_snippets/remote/request_throttler.h" | 85 #include "components/ntp_snippets/remote/request_throttler.h" |
| 86 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider
.h" | 86 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider
.h" |
| 87 #include "components/ntp_snippets/user_classifier.h" | 87 #include "components/ntp_snippets/user_classifier.h" |
| 88 #include "components/ntp_tiles/most_visited_sites.h" | 88 #include "components/ntp_tiles/most_visited_sites.h" |
| 89 #include "components/offline_pages/features/features.h" |
| 89 #include "components/omnibox/browser/zero_suggest_provider.h" | 90 #include "components/omnibox/browser/zero_suggest_provider.h" |
| 90 #include "components/password_manager/core/browser/password_bubble_experiment.h" | 91 #include "components/password_manager/core/browser/password_bubble_experiment.h" |
| 91 #include "components/password_manager/core/browser/password_manager.h" | 92 #include "components/password_manager/core/browser/password_manager.h" |
| 92 #include "components/payments/core/payment_prefs.h" | 93 #include "components/payments/core/payment_prefs.h" |
| 93 #include "components/policy/core/browser/browser_policy_connector.h" | 94 #include "components/policy/core/browser/browser_policy_connector.h" |
| 94 #include "components/policy/core/browser/url_blacklist_manager.h" | 95 #include "components/policy/core/browser/url_blacklist_manager.h" |
| 95 #include "components/policy/core/common/policy_statistics_collector.h" | 96 #include "components/policy/core/common/policy_statistics_collector.h" |
| 96 #include "components/pref_registry/pref_registry_syncable.h" | 97 #include "components/pref_registry/pref_registry_syncable.h" |
| 97 #include "components/prefs/pref_registry_simple.h" | 98 #include "components/prefs/pref_registry_simple.h" |
| 98 #include "components/prefs/pref_service.h" | 99 #include "components/prefs/pref_service.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 #include "chrome/browser/extensions/launch_util.h" | 136 #include "chrome/browser/extensions/launch_util.h" |
| 136 #include "chrome/browser/signin/easy_unlock_service.h" | 137 #include "chrome/browser/signin/easy_unlock_service.h" |
| 137 #include "chrome/browser/ui/toolbar/component_toolbar_actions_factory.h" | 138 #include "chrome/browser/ui/toolbar/component_toolbar_actions_factory.h" |
| 138 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" | 139 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" |
| 139 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" | 140 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
| 140 #include "extensions/browser/api/audio/audio_api.h" | 141 #include "extensions/browser/api/audio/audio_api.h" |
| 141 #include "extensions/browser/api/runtime/runtime_api.h" | 142 #include "extensions/browser/api/runtime/runtime_api.h" |
| 142 #include "extensions/browser/extension_prefs.h" | 143 #include "extensions/browser/extension_prefs.h" |
| 143 #endif // BUILDFLAG(ENABLE_EXTENSIONS) | 144 #endif // BUILDFLAG(ENABLE_EXTENSIONS) |
| 144 | 145 |
| 146 #if BUILDFLAG(ENABLE_OFFLINE_PAGES) |
| 147 #include "chrome/browser/android/offline_pages/prefetch/prefetch_background_task
.h" |
| 148 #endif |
| 149 |
| 145 #if BUILDFLAG(ENABLE_PLUGINS) | 150 #if BUILDFLAG(ENABLE_PLUGINS) |
| 146 #include "chrome/browser/plugins/plugins_resource_service.h" | 151 #include "chrome/browser/plugins/plugins_resource_service.h" |
| 147 #endif | 152 #endif |
| 148 | 153 |
| 149 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) | 154 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
| 150 #include "chrome/browser/supervised_user/child_accounts/child_account_service.h" | 155 #include "chrome/browser/supervised_user/child_accounts/child_account_service.h" |
| 151 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service.h" | 156 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service.h" |
| 152 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" | 157 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" |
| 153 #include "chrome/browser/supervised_user/supervised_user_service.h" | 158 #include "chrome/browser/supervised_user/supervised_user_service.h" |
| 154 #include "chrome/browser/supervised_user/supervised_user_whitelist_service.h" | 159 #include "chrome/browser/supervised_user/supervised_user_whitelist_service.h" |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 registry->RegisterStringPref(kRecentlySelectedEncoding, std::string()); | 674 registry->RegisterStringPref(kRecentlySelectedEncoding, std::string()); |
| 670 registry->RegisterBooleanPref(kWebKitUsesUniversalDetector, true); | 675 registry->RegisterBooleanPref(kWebKitUsesUniversalDetector, true); |
| 671 | 676 |
| 672 registry->RegisterBooleanPref(kWebKitAllowDisplayingInsecureContent, true); | 677 registry->RegisterBooleanPref(kWebKitAllowDisplayingInsecureContent, true); |
| 673 | 678 |
| 674 #if BUILDFLAG(ENABLE_EXTENSIONS) | 679 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 675 registry->RegisterDictionaryPref(kToolbarMigratedComponentActionStatus); | 680 registry->RegisterDictionaryPref(kToolbarMigratedComponentActionStatus); |
| 676 #endif | 681 #endif |
| 677 | 682 |
| 678 registry->RegisterDictionaryPref(kDistroDict); | 683 registry->RegisterDictionaryPref(kDistroDict); |
| 684 |
| 685 #if BUILDFLAG(ENABLE_OFFLINE_PAGES) |
| 686 offline_pages::RegisterPrefetchBackgroundTaskPrefs(registry); |
| 687 #endif |
| 679 } | 688 } |
| 680 | 689 |
| 681 void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 690 void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
| 682 RegisterProfilePrefs(registry); | 691 RegisterProfilePrefs(registry); |
| 683 | 692 |
| 684 #if defined(OS_CHROMEOS) | 693 #if defined(OS_CHROMEOS) |
| 685 chromeos::PowerPrefs::RegisterUserProfilePrefs(registry); | 694 chromeos::PowerPrefs::RegisterUserProfilePrefs(registry); |
| 686 #endif | 695 #endif |
| 687 | 696 |
| 688 #if defined(OS_ANDROID) | 697 #if defined(OS_ANDROID) |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 // default values for all prefs locally. Since we already have the defaults it | 813 // default values for all prefs locally. Since we already have the defaults it |
| 805 // would be wasteful to request them from the service by connecting to the | 814 // would be wasteful to request them from the service by connecting to the |
| 806 // DEFAULT_STORE. | 815 // DEFAULT_STORE. |
| 807 // TODO(sammc): Once we have this distinction, connect to the default pref | 816 // TODO(sammc): Once we have this distinction, connect to the default pref |
| 808 // store here (by erasing it from |pref_stores|). | 817 // store here (by erasing it from |pref_stores|). |
| 809 pref_stores.erase(PrefValueStore::USER_STORE); | 818 pref_stores.erase(PrefValueStore::USER_STORE); |
| 810 return pref_stores; | 819 return pref_stores; |
| 811 } | 820 } |
| 812 | 821 |
| 813 } // namespace chrome | 822 } // namespace chrome |
| OLD | NEW |