| 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/certificate_transparency/ct_policy_manager.h" | 72 #include "components/certificate_transparency/ct_policy_manager.h" |
| 73 #include "components/content_settings/core/browser/host_content_settings_map.h" | 73 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 74 #include "components/dom_distiller/core/distilled_page_prefs.h" | 74 #include "components/dom_distiller/core/distilled_page_prefs.h" |
| 75 #include "components/flags_ui/pref_service_flags_storage.h" | 75 #include "components/flags_ui/pref_service_flags_storage.h" |
| 76 #include "components/gcm_driver/gcm_channel_status_syncer.h" | 76 #include "components/gcm_driver/gcm_channel_status_syncer.h" |
| 77 #include "components/metrics/metrics_service.h" | 77 #include "components/metrics/metrics_service.h" |
| 78 #include "components/network_time/network_time_tracker.h" | 78 #include "components/network_time/network_time_tracker.h" |
| 79 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h" | 79 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h" |
| 80 #include "components/ntp_snippets/ntp_snippets_service.h" | 80 #include "components/ntp_snippets/ntp_snippets_service.h" |
| 81 #include "components/ntp_snippets/request_throttler.h" | 81 #include "components/ntp_snippets/request_throttler.h" |
| 82 #include "components/ntp_snippets/user_classifier.h" |
| 82 #include "components/omnibox/browser/zero_suggest_provider.h" | 83 #include "components/omnibox/browser/zero_suggest_provider.h" |
| 83 #include "components/password_manager/core/browser/password_bubble_experiment.h" | 84 #include "components/password_manager/core/browser/password_bubble_experiment.h" |
| 84 #include "components/password_manager/core/browser/password_manager.h" | 85 #include "components/password_manager/core/browser/password_manager.h" |
| 85 #include "components/policy/core/browser/browser_policy_connector.h" | 86 #include "components/policy/core/browser/browser_policy_connector.h" |
| 86 #include "components/policy/core/browser/url_blacklist_manager.h" | 87 #include "components/policy/core/browser/url_blacklist_manager.h" |
| 87 #include "components/policy/core/common/policy_statistics_collector.h" | 88 #include "components/policy/core/common/policy_statistics_collector.h" |
| 88 #include "components/pref_registry/pref_registry_syncable.h" | 89 #include "components/pref_registry/pref_registry_syncable.h" |
| 89 #include "components/prefs/pref_registry_simple.h" | 90 #include "components/prefs/pref_registry_simple.h" |
| 90 #include "components/prefs/pref_service.h" | 91 #include "components/prefs/pref_service.h" |
| 91 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" | 92 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 HostContentSettingsMap::RegisterProfilePrefs(registry); | 461 HostContentSettingsMap::RegisterProfilePrefs(registry); |
| 461 IncognitoModePrefs::RegisterProfilePrefs(registry); | 462 IncognitoModePrefs::RegisterProfilePrefs(registry); |
| 462 InstantUI::RegisterProfilePrefs(registry); | 463 InstantUI::RegisterProfilePrefs(registry); |
| 463 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry); | 464 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry); |
| 464 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry); | 465 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry); |
| 465 MediaDeviceIDSalt::RegisterProfilePrefs(registry); | 466 MediaDeviceIDSalt::RegisterProfilePrefs(registry); |
| 466 MediaStreamDevicesController::RegisterProfilePrefs(registry); | 467 MediaStreamDevicesController::RegisterProfilePrefs(registry); |
| 467 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry); | 468 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry); |
| 468 ntp_snippets::NTPSnippetsService::RegisterProfilePrefs(registry); | 469 ntp_snippets::NTPSnippetsService::RegisterProfilePrefs(registry); |
| 469 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); | 470 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); |
| 471 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry); |
| 470 password_bubble_experiment::RegisterPrefs(registry); | 472 password_bubble_experiment::RegisterPrefs(registry); |
| 471 password_manager::PasswordManager::RegisterProfilePrefs(registry); | 473 password_manager::PasswordManager::RegisterProfilePrefs(registry); |
| 472 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); | 474 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); |
| 473 PrefsTabHelper::RegisterProfilePrefs(registry); | 475 PrefsTabHelper::RegisterProfilePrefs(registry); |
| 474 Profile::RegisterProfilePrefs(registry); | 476 Profile::RegisterProfilePrefs(registry); |
| 475 ProfileImpl::RegisterProfilePrefs(registry); | 477 ProfileImpl::RegisterProfilePrefs(registry); |
| 476 ProtocolHandlerRegistry::RegisterProfilePrefs(registry); | 478 ProtocolHandlerRegistry::RegisterProfilePrefs(registry); |
| 477 PushMessagingAppIdentifier::RegisterProfilePrefs(registry); | 479 PushMessagingAppIdentifier::RegisterProfilePrefs(registry); |
| 478 RegisterBrowserUserPrefs(registry); | 480 RegisterBrowserUserPrefs(registry); |
| 479 SessionStartupPref::RegisterProfilePrefs(registry); | 481 SessionStartupPref::RegisterProfilePrefs(registry); |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 // Added 5/2016. | 740 // Added 5/2016. |
| 739 profile_prefs->ClearPref(kDesktopSearchRedirectionInfobarShownPref); | 741 profile_prefs->ClearPref(kDesktopSearchRedirectionInfobarShownPref); |
| 740 | 742 |
| 741 // Added 7/2016. | 743 // Added 7/2016. |
| 742 DeleteWebRTCIdentityStoreDB(profile); | 744 DeleteWebRTCIdentityStoreDB(profile); |
| 743 profile_prefs->ClearPref(kNetworkPredictionEnabled); | 745 profile_prefs->ClearPref(kNetworkPredictionEnabled); |
| 744 profile_prefs->ClearPref(kDisableSpdy); | 746 profile_prefs->ClearPref(kDisableSpdy); |
| 745 } | 747 } |
| 746 | 748 |
| 747 } // namespace chrome | 749 } // namespace chrome |
| OLD | NEW |