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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 #endif | 136 #endif |
137 | 137 |
138 #if defined(ENABLE_SUPERVISED_USERS) | 138 #if defined(ENABLE_SUPERVISED_USERS) |
139 #include "chrome/browser/supervised_user/child_accounts/child_account_service.h" | 139 #include "chrome/browser/supervised_user/child_accounts/child_account_service.h" |
140 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service.h" | 140 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service.h" |
141 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" | 141 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" |
142 #include "chrome/browser/supervised_user/supervised_user_service.h" | 142 #include "chrome/browser/supervised_user/supervised_user_service.h" |
143 #include "chrome/browser/supervised_user/supervised_user_whitelist_service.h" | 143 #include "chrome/browser/supervised_user/supervised_user_whitelist_service.h" |
144 #endif | 144 #endif |
145 | 145 |
146 #if defined(ENABLE_SERVICE_DISCOVERY) | 146 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
147 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" | 147 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" |
148 #endif | 148 #endif |
149 | 149 |
150 #if BUILDFLAG(ANDROID_JAVA_UI) | 150 #if BUILDFLAG(ANDROID_JAVA_UI) |
151 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" | 151 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" |
152 #include "chrome/browser/android/ntp/new_tab_page_prefs.h" | 152 #include "chrome/browser/android/ntp/new_tab_page_prefs.h" |
153 #include "components/ntp_tiles/most_visited_sites.h" | 153 #include "components/ntp_tiles/most_visited_sites.h" |
154 #include "components/ntp_tiles/popular_sites.h" | 154 #include "components/ntp_tiles/popular_sites.h" |
155 #else | 155 #else |
156 #include "chrome/browser/ui/startup/startup_browser_creator.h" | 156 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 #endif | 532 #endif |
533 | 533 |
534 #if defined(ENABLE_PLUGINS) | 534 #if defined(ENABLE_PLUGINS) |
535 PluginsUI::RegisterProfilePrefs(registry); | 535 PluginsUI::RegisterProfilePrefs(registry); |
536 #endif | 536 #endif |
537 | 537 |
538 #if defined(ENABLE_PRINT_PREVIEW) | 538 #if defined(ENABLE_PRINT_PREVIEW) |
539 printing::StickySettings::RegisterProfilePrefs(registry); | 539 printing::StickySettings::RegisterProfilePrefs(registry); |
540 #endif | 540 #endif |
541 | 541 |
542 #if defined(ENABLE_SERVICE_DISCOVERY) | 542 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
543 LocalDiscoveryUI::RegisterProfilePrefs(registry); | 543 LocalDiscoveryUI::RegisterProfilePrefs(registry); |
544 #endif | 544 #endif |
545 | 545 |
546 #if defined(ENABLE_SUPERVISED_USERS) | 546 #if defined(ENABLE_SUPERVISED_USERS) |
547 #if !defined(OS_ANDROID) | 547 #if !defined(OS_ANDROID) |
548 SupervisedUserSharedSettingsService::RegisterProfilePrefs(registry); | 548 SupervisedUserSharedSettingsService::RegisterProfilePrefs(registry); |
549 SupervisedUserSyncService::RegisterProfilePrefs(registry); | 549 SupervisedUserSyncService::RegisterProfilePrefs(registry); |
550 #endif | 550 #endif |
551 ChildAccountService::RegisterProfilePrefs(registry); | 551 ChildAccountService::RegisterProfilePrefs(registry); |
552 SupervisedUserService::RegisterProfilePrefs(registry); | 552 SupervisedUserService::RegisterProfilePrefs(registry); |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 // Added 8/2016. | 773 // Added 8/2016. |
774 profile_prefs->ClearPref(kStaticEncodings); | 774 profile_prefs->ClearPref(kStaticEncodings); |
775 profile_prefs->ClearPref(kRecentlySelectedEncoding); | 775 profile_prefs->ClearPref(kRecentlySelectedEncoding); |
776 | 776 |
777 // Added 9/2016. | 777 // Added 9/2016. |
778 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); | 778 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); |
779 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); | 779 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); |
780 } | 780 } |
781 | 781 |
782 } // namespace chrome | 782 } // namespace chrome |
OLD | NEW |