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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 #include "chrome/browser/android/ntp/new_tab_page_prefs.h" | 157 #include "chrome/browser/android/ntp/new_tab_page_prefs.h" |
158 #include "components/ntp_tiles/most_visited_sites.h" | 158 #include "components/ntp_tiles/most_visited_sites.h" |
159 #include "components/ntp_tiles/popular_sites.h" | 159 #include "components/ntp_tiles/popular_sites.h" |
160 #else | 160 #else |
161 #include "chrome/browser/ui/startup/startup_browser_creator.h" | 161 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
162 #include "chrome/browser/upgrade_detector.h" | 162 #include "chrome/browser/upgrade_detector.h" |
163 #endif | 163 #endif |
164 | 164 |
165 #if defined(OS_ANDROID) | 165 #if defined(OS_ANDROID) |
166 #include "chrome/browser/android/preferences/browser_prefs_android.h" | 166 #include "chrome/browser/android/preferences/browser_prefs_android.h" |
| 167 #include "chrome/browser/ntp_snippets/download_suggestions_provider.h" |
| 168 #include "components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.
h" |
| 169 #include "components/ntp_snippets/physical_web_pages/physical_web_page_suggestio
ns_provider.h" |
167 #else | 170 #else |
168 #include "chrome/browser/services/gcm/gcm_product_util.h" | 171 #include "chrome/browser/services/gcm/gcm_product_util.h" |
169 #include "chrome/browser/signin/signin_promo.h" | 172 #include "chrome/browser/signin/signin_promo.h" |
170 #include "chrome/browser/ui/webui/foreign_session_handler.h" | 173 #include "chrome/browser/ui/webui/foreign_session_handler.h" |
171 #endif | 174 #endif |
172 | 175 |
173 #if defined(OS_CHROMEOS) | 176 #if defined(OS_CHROMEOS) |
174 #include "chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager.h" | 177 #include "chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager.h" |
175 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 178 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
176 #include "chrome/browser/chromeos/arc/arc_session_manager.h" | 179 #include "chrome/browser/chromeos/arc/arc_session_manager.h" |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 extensions::CommandService::RegisterProfilePrefs(registry); | 578 extensions::CommandService::RegisterProfilePrefs(registry); |
576 extensions::ExtensionSettingsHandler::RegisterProfilePrefs(registry); | 579 extensions::ExtensionSettingsHandler::RegisterProfilePrefs(registry); |
577 extensions::TabsCaptureVisibleTabFunction::RegisterProfilePrefs(registry); | 580 extensions::TabsCaptureVisibleTabFunction::RegisterProfilePrefs(registry); |
578 first_run::RegisterProfilePrefs(registry); | 581 first_run::RegisterProfilePrefs(registry); |
579 NewTabUI::RegisterProfilePrefs(registry); | 582 NewTabUI::RegisterProfilePrefs(registry); |
580 PepperFlashSettingsManager::RegisterProfilePrefs(registry); | 583 PepperFlashSettingsManager::RegisterProfilePrefs(registry); |
581 PinnedTabCodec::RegisterProfilePrefs(registry); | 584 PinnedTabCodec::RegisterProfilePrefs(registry); |
582 signin::RegisterProfilePrefs(registry); | 585 signin::RegisterProfilePrefs(registry); |
583 #endif | 586 #endif |
584 | 587 |
| 588 #if defined(OS_ANDROID) |
| 589 DownloadSuggestionsProvider::RegisterProfilePrefs(registry); |
| 590 ntp_snippets::PhysicalWebPageSuggestionsProvider::RegisterProfilePrefs( |
| 591 registry); |
| 592 ntp_snippets::RecentTabSuggestionsProvider::RegisterProfilePrefs(registry); |
| 593 #endif // defined(OS_ANDROID) |
| 594 |
585 #if !defined(OS_ANDROID) | 595 #if !defined(OS_ANDROID) |
586 browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry); | 596 browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry); |
587 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); | 597 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); |
588 gcm::RegisterProfilePrefs(registry); | 598 gcm::RegisterProfilePrefs(registry); |
589 StartupBrowserCreator::RegisterProfilePrefs(registry); | 599 StartupBrowserCreator::RegisterProfilePrefs(registry); |
590 #endif | 600 #endif |
591 | 601 |
592 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 602 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
593 default_apps::RegisterProfilePrefs(registry); | 603 default_apps::RegisterProfilePrefs(registry); |
594 #endif | 604 #endif |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 // Added 8/2016. | 790 // Added 8/2016. |
781 profile_prefs->ClearPref(kStaticEncodings); | 791 profile_prefs->ClearPref(kStaticEncodings); |
782 profile_prefs->ClearPref(kRecentlySelectedEncoding); | 792 profile_prefs->ClearPref(kRecentlySelectedEncoding); |
783 | 793 |
784 // Added 9/2016. | 794 // Added 9/2016. |
785 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); | 795 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); |
786 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); | 796 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); |
787 } | 797 } |
788 | 798 |
789 } // namespace chrome | 799 } // namespace chrome |
OLD | NEW |