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/bookmarks/bookmark_suggestions_provider.h" | |
83 #include "components/ntp_snippets/content_suggestions_service.h" | 82 #include "components/ntp_snippets/content_suggestions_service.h" |
84 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h" | 83 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h" |
85 #include "components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h" | 84 #include "components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h" |
86 #include "components/ntp_snippets/remote/request_throttler.h" | 85 #include "components/ntp_snippets/remote/request_throttler.h" |
87 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider
.h" | 86 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider
.h" |
88 #include "components/ntp_snippets/user_classifier.h" | 87 #include "components/ntp_snippets/user_classifier.h" |
89 #include "components/ntp_tiles/most_visited_sites.h" | 88 #include "components/ntp_tiles/most_visited_sites.h" |
90 #include "components/omnibox/browser/zero_suggest_provider.h" | 89 #include "components/omnibox/browser/zero_suggest_provider.h" |
91 #include "components/password_manager/core/browser/password_bubble_experiment.h" | 90 #include "components/password_manager/core/browser/password_bubble_experiment.h" |
92 #include "components/password_manager/core/browser/password_manager.h" | 91 #include "components/password_manager/core/browser/password_manager.h" |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 HostContentSettingsMap::RegisterProfilePrefs(registry); | 483 HostContentSettingsMap::RegisterProfilePrefs(registry); |
485 ImportantSitesUtil::RegisterProfilePrefs(registry); | 484 ImportantSitesUtil::RegisterProfilePrefs(registry); |
486 IncognitoModePrefs::RegisterProfilePrefs(registry); | 485 IncognitoModePrefs::RegisterProfilePrefs(registry); |
487 InstantUI::RegisterProfilePrefs(registry); | 486 InstantUI::RegisterProfilePrefs(registry); |
488 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry); | 487 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry); |
489 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry); | 488 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry); |
490 MediaDeviceIDSalt::RegisterProfilePrefs(registry); | 489 MediaDeviceIDSalt::RegisterProfilePrefs(registry); |
491 MediaStreamDevicesController::RegisterProfilePrefs(registry); | 490 MediaStreamDevicesController::RegisterProfilePrefs(registry); |
492 NetHttpSessionParamsObserver::RegisterProfilePrefs(registry); | 491 NetHttpSessionParamsObserver::RegisterProfilePrefs(registry); |
493 NotifierStateTracker::RegisterProfilePrefs(registry); | 492 NotifierStateTracker::RegisterProfilePrefs(registry); |
494 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry); | |
495 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry); | 493 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry); |
496 ntp_snippets::ForeignSessionsSuggestionsProvider::RegisterProfilePrefs( | 494 ntp_snippets::ForeignSessionsSuggestionsProvider::RegisterProfilePrefs( |
497 registry); | 495 registry); |
498 ntp_snippets::RemoteSuggestionsProviderImpl::RegisterProfilePrefs(registry); | 496 ntp_snippets::RemoteSuggestionsProviderImpl::RegisterProfilePrefs(registry); |
499 ntp_snippets::RemoteSuggestionsSchedulerImpl::RegisterProfilePrefs(registry); | 497 ntp_snippets::RemoteSuggestionsSchedulerImpl::RegisterProfilePrefs(registry); |
500 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); | 498 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); |
501 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry); | 499 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry); |
502 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); | 500 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); |
503 password_bubble_experiment::RegisterPrefs(registry); | 501 password_bubble_experiment::RegisterPrefs(registry); |
504 password_manager::PasswordManager::RegisterProfilePrefs(registry); | 502 password_manager::PasswordManager::RegisterProfilePrefs(registry); |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 // default values for all prefs locally. Since we already have the defaults it | 818 // default values for all prefs locally. Since we already have the defaults it |
821 // would be wasteful to request them from the service by connecting to the | 819 // would be wasteful to request them from the service by connecting to the |
822 // DEFAULT_STORE. | 820 // DEFAULT_STORE. |
823 // TODO(sammc): Once we have this distinction, connect to the default pref | 821 // TODO(sammc): Once we have this distinction, connect to the default pref |
824 // store here (by erasing it from |pref_stores|). | 822 // store here (by erasing it from |pref_stores|). |
825 pref_stores.erase(PrefValueStore::USER_STORE); | 823 pref_stores.erase(PrefValueStore::USER_STORE); |
826 return pref_stores; | 824 return pref_stores; |
827 } | 825 } |
828 | 826 |
829 } // namespace chrome | 827 } // namespace chrome |
OLD | NEW |