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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service.h" | 147 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service.h" |
148 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" | 148 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" |
149 #include "chrome/browser/supervised_user/supervised_user_service.h" | 149 #include "chrome/browser/supervised_user/supervised_user_service.h" |
150 #include "chrome/browser/supervised_user/supervised_user_whitelist_service.h" | 150 #include "chrome/browser/supervised_user/supervised_user_whitelist_service.h" |
151 #endif | 151 #endif |
152 | 152 |
153 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 153 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
154 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" | 154 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" |
155 #endif | 155 #endif |
156 | 156 |
157 #if BUILDFLAG(ANDROID_JAVA_UI) | 157 #if defined(OS_ANDROID) |
158 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" | 158 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" |
| 159 #include "chrome/browser/android/ntp/content_suggestions_notifier_service.h" |
159 #include "chrome/browser/android/ntp/recent_tabs_page_prefs.h" | 160 #include "chrome/browser/android/ntp/recent_tabs_page_prefs.h" |
160 #include "components/ntp_tiles/popular_sites_impl.h" | |
161 #else | |
162 #include "chrome/browser/ui/startup/startup_browser_creator.h" | |
163 #include "chrome/browser/upgrade_detector.h" | |
164 #endif | |
165 | |
166 #if defined(OS_ANDROID) | |
167 #include "chrome/browser/android/ntp/content_suggestions_notifier_service.h" | |
168 #include "chrome/browser/android/preferences/browser_prefs_android.h" | 161 #include "chrome/browser/android/preferences/browser_prefs_android.h" |
169 #include "chrome/browser/ntp_snippets/download_suggestions_provider.h" | 162 #include "chrome/browser/ntp_snippets/download_suggestions_provider.h" |
170 #include "components/ntp_snippets/category_rankers/click_based_category_ranker.h
" | 163 #include "components/ntp_snippets/category_rankers/click_based_category_ranker.h
" |
171 #include "components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.
h" | 164 #include "components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.
h" |
172 #include "components/ntp_snippets/physical_web_pages/physical_web_page_suggestio
ns_provider.h" | 165 #include "components/ntp_snippets/physical_web_pages/physical_web_page_suggestio
ns_provider.h" |
| 166 #include "components/ntp_tiles/popular_sites_impl.h" |
173 #else | 167 #else |
174 #include "chrome/browser/services/gcm/gcm_product_util.h" | 168 #include "chrome/browser/services/gcm/gcm_product_util.h" |
175 #include "chrome/browser/signin/signin_promo.h" | 169 #include "chrome/browser/signin/signin_promo.h" |
| 170 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
176 #include "chrome/browser/ui/webui/foreign_session_handler.h" | 171 #include "chrome/browser/ui/webui/foreign_session_handler.h" |
| 172 #include "chrome/browser/upgrade_detector.h" |
177 #endif | 173 #endif |
178 | 174 |
179 #if defined(OS_CHROMEOS) | 175 #if defined(OS_CHROMEOS) |
180 #include "chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager.h" | 176 #include "chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager.h" |
181 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 177 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
182 #include "chrome/browser/chromeos/arc/arc_session_manager.h" | 178 #include "chrome/browser/chromeos/arc/arc_session_manager.h" |
183 #include "chrome/browser/chromeos/arc/policy/arc_policy_bridge.h" | 179 #include "chrome/browser/chromeos/arc/policy/arc_policy_bridge.h" |
184 #include "chrome/browser/chromeos/customization/customization_document.h" | 180 #include "chrome/browser/chromeos/customization/customization_document.h" |
185 #include "chrome/browser/chromeos/display/display_preferences.h" | 181 #include "chrome/browser/chromeos/display/display_preferences.h" |
186 #include "chrome/browser/chromeos/extensions/echo_private_api.h" | 182 #include "chrome/browser/chromeos/extensions/echo_private_api.h" |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) | 556 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
561 #if !defined(OS_ANDROID) | 557 #if !defined(OS_ANDROID) |
562 SupervisedUserSharedSettingsService::RegisterProfilePrefs(registry); | 558 SupervisedUserSharedSettingsService::RegisterProfilePrefs(registry); |
563 SupervisedUserSyncService::RegisterProfilePrefs(registry); | 559 SupervisedUserSyncService::RegisterProfilePrefs(registry); |
564 #endif | 560 #endif |
565 ChildAccountService::RegisterProfilePrefs(registry); | 561 ChildAccountService::RegisterProfilePrefs(registry); |
566 SupervisedUserService::RegisterProfilePrefs(registry); | 562 SupervisedUserService::RegisterProfilePrefs(registry); |
567 SupervisedUserWhitelistService::RegisterProfilePrefs(registry); | 563 SupervisedUserWhitelistService::RegisterProfilePrefs(registry); |
568 #endif | 564 #endif |
569 | 565 |
570 #if BUILDFLAG(ANDROID_JAVA_UI) | 566 #if defined(OS_ANDROID) |
571 ntp_tiles::PopularSitesImpl::RegisterProfilePrefs(registry); | 567 ntp_tiles::PopularSitesImpl::RegisterProfilePrefs(registry); |
572 variations::VariationsService::RegisterProfilePrefs(registry); | 568 variations::VariationsService::RegisterProfilePrefs(registry); |
573 PartnerBookmarksShim::RegisterProfilePrefs(registry); | 569 PartnerBookmarksShim::RegisterProfilePrefs(registry); |
574 RecentTabsPagePrefs::RegisterProfilePrefs(registry); | 570 RecentTabsPagePrefs::RegisterProfilePrefs(registry); |
575 #else | 571 #else |
576 AppShortcutManager::RegisterProfilePrefs(registry); | 572 AppShortcutManager::RegisterProfilePrefs(registry); |
577 DeviceIDFetcher::RegisterProfilePrefs(registry); | 573 DeviceIDFetcher::RegisterProfilePrefs(registry); |
578 DevToolsWindow::RegisterProfilePrefs(registry); | 574 DevToolsWindow::RegisterProfilePrefs(registry); |
579 #if BUILDFLAG(ENABLE_APP_LIST) | 575 #if BUILDFLAG(ENABLE_APP_LIST) |
580 DriveAppMapping::RegisterProfilePrefs(registry); | 576 DriveAppMapping::RegisterProfilePrefs(registry); |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 // Added 8/2016. | 793 // Added 8/2016. |
798 profile_prefs->ClearPref(kStaticEncodings); | 794 profile_prefs->ClearPref(kStaticEncodings); |
799 profile_prefs->ClearPref(kRecentlySelectedEncoding); | 795 profile_prefs->ClearPref(kRecentlySelectedEncoding); |
800 | 796 |
801 // Added 9/2016. | 797 // Added 9/2016. |
802 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); | 798 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); |
803 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); | 799 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); |
804 } | 800 } |
805 | 801 |
806 } // namespace chrome | 802 } // namespace chrome |
OLD | NEW |