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