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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 #include "components/certificate_transparency/ct_policy_manager.h" | 73 #include "components/certificate_transparency/ct_policy_manager.h" |
74 #include "components/content_settings/core/browser/host_content_settings_map.h" | 74 #include "components/content_settings/core/browser/host_content_settings_map.h" |
75 #include "components/dom_distiller/core/distilled_page_prefs.h" | 75 #include "components/dom_distiller/core/distilled_page_prefs.h" |
76 #include "components/flags_ui/pref_service_flags_storage.h" | 76 #include "components/flags_ui/pref_service_flags_storage.h" |
77 #include "components/gcm_driver/gcm_channel_status_syncer.h" | 77 #include "components/gcm_driver/gcm_channel_status_syncer.h" |
78 #include "components/metrics/metrics_service.h" | 78 #include "components/metrics/metrics_service.h" |
79 #include "components/network_time/network_time_tracker.h" | 79 #include "components/network_time/network_time_tracker.h" |
80 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h" | 80 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h" |
81 #include "components/ntp_snippets/ntp_snippets_service.h" | 81 #include "components/ntp_snippets/ntp_snippets_service.h" |
82 #include "components/ntp_snippets/request_throttler.h" | 82 #include "components/ntp_snippets/request_throttler.h" |
| 83 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider
.h" |
83 #include "components/ntp_snippets/user_classifier.h" | 84 #include "components/ntp_snippets/user_classifier.h" |
84 #include "components/omnibox/browser/zero_suggest_provider.h" | 85 #include "components/omnibox/browser/zero_suggest_provider.h" |
85 #include "components/password_manager/core/browser/password_bubble_experiment.h" | 86 #include "components/password_manager/core/browser/password_bubble_experiment.h" |
86 #include "components/password_manager/core/browser/password_manager.h" | 87 #include "components/password_manager/core/browser/password_manager.h" |
87 #include "components/policy/core/browser/browser_policy_connector.h" | 88 #include "components/policy/core/browser/browser_policy_connector.h" |
88 #include "components/policy/core/browser/url_blacklist_manager.h" | 89 #include "components/policy/core/browser/url_blacklist_manager.h" |
89 #include "components/policy/core/common/policy_statistics_collector.h" | 90 #include "components/policy/core/common/policy_statistics_collector.h" |
90 #include "components/pref_registry/pref_registry_syncable.h" | 91 #include "components/pref_registry/pref_registry_syncable.h" |
91 #include "components/prefs/pref_registry_simple.h" | 92 #include "components/prefs/pref_registry_simple.h" |
92 #include "components/prefs/pref_service.h" | 93 #include "components/prefs/pref_service.h" |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 dom_distiller::DistilledPagePrefs::RegisterProfilePrefs(registry); | 470 dom_distiller::DistilledPagePrefs::RegisterProfilePrefs(registry); |
470 DownloadPrefs::RegisterProfilePrefs(registry); | 471 DownloadPrefs::RegisterProfilePrefs(registry); |
471 HostContentSettingsMap::RegisterProfilePrefs(registry); | 472 HostContentSettingsMap::RegisterProfilePrefs(registry); |
472 IncognitoModePrefs::RegisterProfilePrefs(registry); | 473 IncognitoModePrefs::RegisterProfilePrefs(registry); |
473 InstantUI::RegisterProfilePrefs(registry); | 474 InstantUI::RegisterProfilePrefs(registry); |
474 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry); | 475 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry); |
475 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry); | 476 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry); |
476 MediaDeviceIDSalt::RegisterProfilePrefs(registry); | 477 MediaDeviceIDSalt::RegisterProfilePrefs(registry); |
477 MediaStreamDevicesController::RegisterProfilePrefs(registry); | 478 MediaStreamDevicesController::RegisterProfilePrefs(registry); |
478 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry); | 479 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry); |
| 480 ntp_snippets::ForeignSessionsSuggestionsProvider::RegisterProfilePrefs( |
| 481 registry); |
479 ntp_snippets::NTPSnippetsService::RegisterProfilePrefs(registry); | 482 ntp_snippets::NTPSnippetsService::RegisterProfilePrefs(registry); |
480 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); | 483 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); |
481 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry); | 484 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry); |
482 password_bubble_experiment::RegisterPrefs(registry); | 485 password_bubble_experiment::RegisterPrefs(registry); |
483 password_manager::PasswordManager::RegisterProfilePrefs(registry); | 486 password_manager::PasswordManager::RegisterProfilePrefs(registry); |
484 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); | 487 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); |
485 PrefsTabHelper::RegisterProfilePrefs(registry); | 488 PrefsTabHelper::RegisterProfilePrefs(registry); |
486 Profile::RegisterProfilePrefs(registry); | 489 Profile::RegisterProfilePrefs(registry); |
487 ProfileImpl::RegisterProfilePrefs(registry); | 490 ProfileImpl::RegisterProfilePrefs(registry); |
488 ProtocolHandlerRegistry::RegisterProfilePrefs(registry); | 491 ProtocolHandlerRegistry::RegisterProfilePrefs(registry); |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 // Added 8/2016. | 767 // Added 8/2016. |
765 profile_prefs->ClearPref(kStaticEncodings); | 768 profile_prefs->ClearPref(kStaticEncodings); |
766 profile_prefs->ClearPref(kRecentlySelectedEncoding); | 769 profile_prefs->ClearPref(kRecentlySelectedEncoding); |
767 | 770 |
768 // Added 9/2016. | 771 // Added 9/2016. |
769 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); | 772 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); |
770 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); | 773 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); |
771 } | 774 } |
772 | 775 |
773 } // namespace chrome | 776 } // namespace chrome |
OLD | NEW |