| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 #include "components/autofill/core/browser/autofill_manager.h" | 72 #include "components/autofill/core/browser/autofill_manager.h" |
| 73 #include "components/browsing_data/core/pref_names.h" | 73 #include "components/browsing_data/core/pref_names.h" |
| 74 #include "components/certificate_transparency/ct_policy_manager.h" | 74 #include "components/certificate_transparency/ct_policy_manager.h" |
| 75 #include "components/content_settings/core/browser/host_content_settings_map.h" | 75 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 76 #include "components/dom_distiller/core/distilled_page_prefs.h" | 76 #include "components/dom_distiller/core/distilled_page_prefs.h" |
| 77 #include "components/doodle/doodle_service.h" | 77 #include "components/doodle/doodle_service.h" |
| 78 #include "components/flags_ui/pref_service_flags_storage.h" | 78 #include "components/flags_ui/pref_service_flags_storage.h" |
| 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/breaking_news/subscription_manager.h" |
| 82 #include "components/ntp_snippets/content_suggestions_service.h" | 83 #include "components/ntp_snippets/content_suggestions_service.h" |
| 83 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h" | 84 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h" |
| 84 #include "components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h" | 85 #include "components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h" |
| 85 #include "components/ntp_snippets/remote/request_throttler.h" | 86 #include "components/ntp_snippets/remote/request_throttler.h" |
| 86 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider
.h" | 87 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider
.h" |
| 87 #include "components/ntp_snippets/user_classifier.h" | 88 #include "components/ntp_snippets/user_classifier.h" |
| 88 #include "components/ntp_tiles/most_visited_sites.h" | 89 #include "components/ntp_tiles/most_visited_sites.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" |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 MediaDeviceIDSalt::RegisterProfilePrefs(registry); | 491 MediaDeviceIDSalt::RegisterProfilePrefs(registry); |
| 491 MediaStreamDevicesController::RegisterProfilePrefs(registry); | 492 MediaStreamDevicesController::RegisterProfilePrefs(registry); |
| 492 NetHttpSessionParamsObserver::RegisterProfilePrefs(registry); | 493 NetHttpSessionParamsObserver::RegisterProfilePrefs(registry); |
| 493 NotifierStateTracker::RegisterProfilePrefs(registry); | 494 NotifierStateTracker::RegisterProfilePrefs(registry); |
| 494 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry); | 495 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry); |
| 495 ntp_snippets::ForeignSessionsSuggestionsProvider::RegisterProfilePrefs( | 496 ntp_snippets::ForeignSessionsSuggestionsProvider::RegisterProfilePrefs( |
| 496 registry); | 497 registry); |
| 497 ntp_snippets::RemoteSuggestionsProviderImpl::RegisterProfilePrefs(registry); | 498 ntp_snippets::RemoteSuggestionsProviderImpl::RegisterProfilePrefs(registry); |
| 498 ntp_snippets::RemoteSuggestionsSchedulerImpl::RegisterProfilePrefs(registry); | 499 ntp_snippets::RemoteSuggestionsSchedulerImpl::RegisterProfilePrefs(registry); |
| 499 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); | 500 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); |
| 501 ntp_snippets::SubscriptionManager::RegisterProfilePrefs(registry); |
| 500 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry); | 502 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry); |
| 501 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); | 503 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); |
| 502 password_bubble_experiment::RegisterPrefs(registry); | 504 password_bubble_experiment::RegisterPrefs(registry); |
| 503 password_manager::PasswordManager::RegisterProfilePrefs(registry); | 505 password_manager::PasswordManager::RegisterProfilePrefs(registry); |
| 504 payments::RegisterProfilePrefs(registry); | 506 payments::RegisterProfilePrefs(registry); |
| 505 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); | 507 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); |
| 506 PrefsTabHelper::RegisterProfilePrefs(registry); | 508 PrefsTabHelper::RegisterProfilePrefs(registry); |
| 507 Profile::RegisterProfilePrefs(registry); | 509 Profile::RegisterProfilePrefs(registry); |
| 508 ProfileImpl::RegisterProfilePrefs(registry); | 510 ProfileImpl::RegisterProfilePrefs(registry); |
| 509 ProtocolHandlerRegistry::RegisterProfilePrefs(registry); | 511 ProtocolHandlerRegistry::RegisterProfilePrefs(registry); |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 // default values for all prefs locally. Since we already have the defaults it | 808 // default values for all prefs locally. Since we already have the defaults it |
| 807 // would be wasteful to request them from the service by connecting to the | 809 // would be wasteful to request them from the service by connecting to the |
| 808 // DEFAULT_STORE. | 810 // DEFAULT_STORE. |
| 809 // TODO(sammc): Once we have this distinction, connect to the default pref | 811 // TODO(sammc): Once we have this distinction, connect to the default pref |
| 810 // store here (by erasing it from |pref_stores|). | 812 // store here (by erasing it from |pref_stores|). |
| 811 pref_stores.erase(PrefValueStore::USER_STORE); | 813 pref_stores.erase(PrefValueStore::USER_STORE); |
| 812 return pref_stores; | 814 return pref_stores; |
| 813 } | 815 } |
| 814 | 816 |
| 815 } // namespace chrome | 817 } // namespace chrome |
| OLD | NEW |