| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 #include "chrome/browser/ui/webui/instant_ui.h" | 67 #include "chrome/browser/ui/webui/instant_ui.h" |
| 68 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 68 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
| 69 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" | 69 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" |
| 70 #include "chrome/common/features.h" | 70 #include "chrome/common/features.h" |
| 71 #include "chrome/common/pref_names.h" | 71 #include "chrome/common/pref_names.h" |
| 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/flags_ui/pref_service_flags_storage.h" | 78 #include "components/flags_ui/pref_service_flags_storage.h" |
| 78 #include "components/gcm_driver/gcm_channel_status_syncer.h" | 79 #include "components/gcm_driver/gcm_channel_status_syncer.h" |
| 79 #include "components/metrics/metrics_service.h" | 80 #include "components/metrics/metrics_service.h" |
| 80 #include "components/network_time/network_time_tracker.h" | 81 #include "components/network_time/network_time_tracker.h" |
| 81 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h" | 82 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.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/request_throttler.h" | 85 #include "components/ntp_snippets/remote/request_throttler.h" |
| 85 #include "components/ntp_snippets/remote/scheduling_remote_suggestions_provider.
h" | 86 #include "components/ntp_snippets/remote/scheduling_remote_suggestions_provider.
h" |
| 86 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider
.h" | 87 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider
.h" |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 autofill::AutofillManager::RegisterProfilePrefs(registry); | 464 autofill::AutofillManager::RegisterProfilePrefs(registry); |
| 464 syncer::SyncPrefs::RegisterProfilePrefs(registry); | 465 syncer::SyncPrefs::RegisterProfilePrefs(registry); |
| 465 ChromeContentBrowserClient::RegisterProfilePrefs(registry); | 466 ChromeContentBrowserClient::RegisterProfilePrefs(registry); |
| 466 ChromeVersionService::RegisterProfilePrefs(registry); | 467 ChromeVersionService::RegisterProfilePrefs(registry); |
| 467 chrome_browser_net::HttpServerPropertiesManagerFactory::RegisterProfilePrefs( | 468 chrome_browser_net::HttpServerPropertiesManagerFactory::RegisterProfilePrefs( |
| 468 registry); | 469 registry); |
| 469 chrome_browser_net::Predictor::RegisterProfilePrefs(registry); | 470 chrome_browser_net::Predictor::RegisterProfilePrefs(registry); |
| 470 chrome_browser_net::RegisterPredictionOptionsProfilePrefs(registry); | 471 chrome_browser_net::RegisterPredictionOptionsProfilePrefs(registry); |
| 471 chrome_prefs::RegisterProfilePrefs(registry); | 472 chrome_prefs::RegisterProfilePrefs(registry); |
| 472 dom_distiller::DistilledPagePrefs::RegisterProfilePrefs(registry); | 473 dom_distiller::DistilledPagePrefs::RegisterProfilePrefs(registry); |
| 474 doodle::DoodleService::RegisterProfilePrefs(registry); |
| 473 DownloadPrefs::RegisterProfilePrefs(registry); | 475 DownloadPrefs::RegisterProfilePrefs(registry); |
| 474 HostContentSettingsMap::RegisterProfilePrefs(registry); | 476 HostContentSettingsMap::RegisterProfilePrefs(registry); |
| 475 ImportantSitesUtil::RegisterProfilePrefs(registry); | 477 ImportantSitesUtil::RegisterProfilePrefs(registry); |
| 476 IncognitoModePrefs::RegisterProfilePrefs(registry); | 478 IncognitoModePrefs::RegisterProfilePrefs(registry); |
| 477 InstantUI::RegisterProfilePrefs(registry); | 479 InstantUI::RegisterProfilePrefs(registry); |
| 478 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry); | 480 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry); |
| 479 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry); | 481 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry); |
| 480 MediaDeviceIDSalt::RegisterProfilePrefs(registry); | 482 MediaDeviceIDSalt::RegisterProfilePrefs(registry); |
| 481 MediaStreamDevicesController::RegisterProfilePrefs(registry); | 483 MediaStreamDevicesController::RegisterProfilePrefs(registry); |
| 482 NetHttpSessionParamsObserver::RegisterProfilePrefs(registry); | 484 NetHttpSessionParamsObserver::RegisterProfilePrefs(registry); |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 if (distro_dict && | 783 if (distro_dict && |
| 782 distro_dict->GetInteger(kDistroRlzPingDelay, &rlz_ping_delay)) { | 784 distro_dict->GetInteger(kDistroRlzPingDelay, &rlz_ping_delay)) { |
| 783 profile_prefs->SetInteger(prefs::kRlzPingDelaySeconds, rlz_ping_delay); | 785 profile_prefs->SetInteger(prefs::kRlzPingDelaySeconds, rlz_ping_delay); |
| 784 } | 786 } |
| 785 #endif // BUILDFLAG(ENABLE_RLZ) | 787 #endif // BUILDFLAG(ENABLE_RLZ) |
| 786 profile_prefs->ClearPref(kDistroDict); | 788 profile_prefs->ClearPref(kDistroDict); |
| 787 } | 789 } |
| 788 } | 790 } |
| 789 | 791 |
| 790 } // namespace chrome | 792 } // namespace chrome |
| OLD | NEW |