| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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" |
| 157 #include "chrome/browser/upgrade_detector.h" | 157 #include "chrome/browser/upgrade_detector.h" |
| 158 #endif | 158 #endif |
| 159 | 159 |
| 160 #if defined(OS_ANDROID) | 160 #if defined(OS_ANDROID) |
| 161 #include "chrome/browser/notifications/notification_platform_bridge_android.h" | 161 #include "chrome/browser/notifications/notification_platform_bridge_android.h" |
| 162 #include "chrome/browser/ntp_snippets/download_suggestions_provider.h" |
| 162 #include "components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.
h" | 163 #include "components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.
h" |
| 163 #else | 164 #else |
| 164 #include "chrome/browser/services/gcm/gcm_product_util.h" | 165 #include "chrome/browser/services/gcm/gcm_product_util.h" |
| 165 #include "chrome/browser/signin/signin_promo.h" | 166 #include "chrome/browser/signin/signin_promo.h" |
| 166 #include "chrome/browser/ui/webui/foreign_session_handler.h" | 167 #include "chrome/browser/ui/webui/foreign_session_handler.h" |
| 167 #endif | 168 #endif |
| 168 | 169 |
| 169 #if defined(OS_CHROMEOS) | 170 #if defined(OS_CHROMEOS) |
| 170 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 171 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| 171 #include "chrome/browser/chromeos/arc/arc_auth_service.h" | 172 #include "chrome/browser/chromeos/arc/arc_auth_service.h" |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 extensions::ExtensionSettingsHandler::RegisterProfilePrefs(registry); | 573 extensions::ExtensionSettingsHandler::RegisterProfilePrefs(registry); |
| 573 extensions::TabsCaptureVisibleTabFunction::RegisterProfilePrefs(registry); | 574 extensions::TabsCaptureVisibleTabFunction::RegisterProfilePrefs(registry); |
| 574 first_run::RegisterProfilePrefs(registry); | 575 first_run::RegisterProfilePrefs(registry); |
| 575 NewTabUI::RegisterProfilePrefs(registry); | 576 NewTabUI::RegisterProfilePrefs(registry); |
| 576 PepperFlashSettingsManager::RegisterProfilePrefs(registry); | 577 PepperFlashSettingsManager::RegisterProfilePrefs(registry); |
| 577 PinnedTabCodec::RegisterProfilePrefs(registry); | 578 PinnedTabCodec::RegisterProfilePrefs(registry); |
| 578 signin::RegisterProfilePrefs(registry); | 579 signin::RegisterProfilePrefs(registry); |
| 579 #endif | 580 #endif |
| 580 | 581 |
| 581 #if defined(OS_ANDROID) | 582 #if defined(OS_ANDROID) |
| 583 DownloadSuggestionsProvider::RegisterProfilePrefs(registry); |
| 582 NotificationPlatformBridgeAndroid::RegisterProfilePrefs(registry); | 584 NotificationPlatformBridgeAndroid::RegisterProfilePrefs(registry); |
| 583 ntp_snippets::RecentTabSuggestionsProvider::RegisterProfilePrefs(registry); | 585 ntp_snippets::RecentTabSuggestionsProvider::RegisterProfilePrefs(registry); |
| 584 #else | 586 #else |
| 585 browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry); | 587 browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry); |
| 586 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); | 588 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); |
| 587 gcm::RegisterProfilePrefs(registry); | 589 gcm::RegisterProfilePrefs(registry); |
| 588 #endif | 590 #endif |
| 589 | 591 |
| 590 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 592 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
| 591 default_apps::RegisterProfilePrefs(registry); | 593 default_apps::RegisterProfilePrefs(registry); |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 // Added 8/2016. | 777 // Added 8/2016. |
| 776 profile_prefs->ClearPref(kStaticEncodings); | 778 profile_prefs->ClearPref(kStaticEncodings); |
| 777 profile_prefs->ClearPref(kRecentlySelectedEncoding); | 779 profile_prefs->ClearPref(kRecentlySelectedEncoding); |
| 778 | 780 |
| 779 // Added 9/2016. | 781 // Added 9/2016. |
| 780 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); | 782 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); |
| 781 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); | 783 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); |
| 782 } | 784 } |
| 783 | 785 |
| 784 } // namespace chrome | 786 } // namespace chrome |
| OLD | NEW |