| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" | 129 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" |
| 130 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" | 130 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
| 131 #include "extensions/browser/api/runtime/runtime_api.h" | 131 #include "extensions/browser/api/runtime/runtime_api.h" |
| 132 #include "extensions/browser/extension_prefs.h" | 132 #include "extensions/browser/extension_prefs.h" |
| 133 #endif // defined(ENABLE_EXTENSIONS) | 133 #endif // defined(ENABLE_EXTENSIONS) |
| 134 | 134 |
| 135 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) | 135 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) |
| 136 #include "chrome/browser/plugins/plugins_resource_service.h" | 136 #include "chrome/browser/plugins/plugins_resource_service.h" |
| 137 #endif | 137 #endif |
| 138 | 138 |
| 139 #if defined(ENABLE_SUPERVISED_USERS) | 139 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
| 140 #include "chrome/browser/supervised_user/child_accounts/child_account_service.h" | 140 #include "chrome/browser/supervised_user/child_accounts/child_account_service.h" |
| 141 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service.h" | 141 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service.h" |
| 142 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" | 142 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" |
| 143 #include "chrome/browser/supervised_user/supervised_user_service.h" | 143 #include "chrome/browser/supervised_user/supervised_user_service.h" |
| 144 #include "chrome/browser/supervised_user/supervised_user_whitelist_service.h" | 144 #include "chrome/browser/supervised_user/supervised_user_whitelist_service.h" |
| 145 #endif | 145 #endif |
| 146 | 146 |
| 147 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 147 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
| 148 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" | 148 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" |
| 149 #endif | 149 #endif |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 #endif | 537 #endif |
| 538 | 538 |
| 539 #if defined(ENABLE_PRINT_PREVIEW) | 539 #if defined(ENABLE_PRINT_PREVIEW) |
| 540 printing::StickySettings::RegisterProfilePrefs(registry); | 540 printing::StickySettings::RegisterProfilePrefs(registry); |
| 541 #endif | 541 #endif |
| 542 | 542 |
| 543 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 543 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
| 544 LocalDiscoveryUI::RegisterProfilePrefs(registry); | 544 LocalDiscoveryUI::RegisterProfilePrefs(registry); |
| 545 #endif | 545 #endif |
| 546 | 546 |
| 547 #if defined(ENABLE_SUPERVISED_USERS) | 547 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
| 548 #if !defined(OS_ANDROID) | 548 #if !defined(OS_ANDROID) |
| 549 SupervisedUserSharedSettingsService::RegisterProfilePrefs(registry); | 549 SupervisedUserSharedSettingsService::RegisterProfilePrefs(registry); |
| 550 SupervisedUserSyncService::RegisterProfilePrefs(registry); | 550 SupervisedUserSyncService::RegisterProfilePrefs(registry); |
| 551 #endif | 551 #endif |
| 552 ChildAccountService::RegisterProfilePrefs(registry); | 552 ChildAccountService::RegisterProfilePrefs(registry); |
| 553 SupervisedUserService::RegisterProfilePrefs(registry); | 553 SupervisedUserService::RegisterProfilePrefs(registry); |
| 554 SupervisedUserWhitelistService::RegisterProfilePrefs(registry); | 554 SupervisedUserWhitelistService::RegisterProfilePrefs(registry); |
| 555 #endif | 555 #endif |
| 556 | 556 |
| 557 #if BUILDFLAG(ANDROID_JAVA_UI) | 557 #if BUILDFLAG(ANDROID_JAVA_UI) |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 // Added 8/2016. | 775 // Added 8/2016. |
| 776 profile_prefs->ClearPref(kStaticEncodings); | 776 profile_prefs->ClearPref(kStaticEncodings); |
| 777 profile_prefs->ClearPref(kRecentlySelectedEncoding); | 777 profile_prefs->ClearPref(kRecentlySelectedEncoding); |
| 778 | 778 |
| 779 // Added 9/2016. | 779 // Added 9/2016. |
| 780 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); | 780 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); |
| 781 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); | 781 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); |
| 782 } | 782 } |
| 783 | 783 |
| 784 } // namespace chrome | 784 } // namespace chrome |
| OLD | NEW |