Chromium Code Reviews| 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" |
| 11 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "chrome/browser/about_flags.h" | 13 #include "chrome/browser/about_flags.h" |
| 14 #include "chrome/browser/accessibility/invert_bubble_prefs.h" | 14 #include "chrome/browser/accessibility/invert_bubble_prefs.h" |
| 15 #include "chrome/browser/browser_process_impl.h" | 15 #include "chrome/browser/browser_process_impl.h" |
| 16 #include "chrome/browser/browser_shutdown.h" | 16 #include "chrome/browser/browser_shutdown.h" |
| 17 #include "chrome/browser/chrome_content_browser_client.h" | 17 #include "chrome/browser/chrome_content_browser_client.h" |
| 18 #include "chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token _fetcher.h" | |
|
Greg Levin
2017/02/21 17:35:47
This should be moved down to the "#if defined(OS_C
Marton Hunyady
2017/02/22 15:21:21
Done.
| |
| 18 #include "chrome/browser/component_updater/component_updater_prefs.h" | 19 #include "chrome/browser/component_updater/component_updater_prefs.h" |
| 19 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 20 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 20 #include "chrome/browser/devtools/devtools_window.h" | 21 #include "chrome/browser/devtools/devtools_window.h" |
| 21 #include "chrome/browser/download/download_prefs.h" | 22 #include "chrome/browser/download/download_prefs.h" |
| 22 #include "chrome/browser/engagement/important_sites_util.h" | 23 #include "chrome/browser/engagement/important_sites_util.h" |
| 23 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 24 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
| 24 #include "chrome/browser/first_run/first_run.h" | 25 #include "chrome/browser/first_run/first_run.h" |
| 25 #include "chrome/browser/geolocation/geolocation_prefs.h" | 26 #include "chrome/browser/geolocation/geolocation_prefs.h" |
| 26 #include "chrome/browser/gpu/gpu_mode_manager.h" | 27 #include "chrome/browser/gpu/gpu_mode_manager.h" |
| 27 #include "chrome/browser/gpu/gpu_profile_cache.h" | 28 #include "chrome/browser/gpu/gpu_profile_cache.h" |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 567 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); | 568 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); |
| 568 gcm::RegisterProfilePrefs(registry); | 569 gcm::RegisterProfilePrefs(registry); |
| 569 StartupBrowserCreator::RegisterProfilePrefs(registry); | 570 StartupBrowserCreator::RegisterProfilePrefs(registry); |
| 570 #endif | 571 #endif |
| 571 | 572 |
| 572 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 573 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
| 573 default_apps::RegisterProfilePrefs(registry); | 574 default_apps::RegisterProfilePrefs(registry); |
| 574 #endif | 575 #endif |
| 575 | 576 |
| 576 #if defined(OS_CHROMEOS) | 577 #if defined(OS_CHROMEOS) |
| 578 arc::ArcActiveDirectoryEnrollmentTokenFetcher::RegisterProfilePrefs(registry); | |
| 577 arc::ArcSessionManager::RegisterProfilePrefs(registry); | 579 arc::ArcSessionManager::RegisterProfilePrefs(registry); |
| 578 arc::ArcPolicyBridge::RegisterProfilePrefs(registry); | 580 arc::ArcPolicyBridge::RegisterProfilePrefs(registry); |
| 579 chromeos::first_run::RegisterProfilePrefs(registry); | 581 chromeos::first_run::RegisterProfilePrefs(registry); |
| 580 chromeos::file_system_provider::RegisterProfilePrefs(registry); | 582 chromeos::file_system_provider::RegisterProfilePrefs(registry); |
| 581 chromeos::KeyPermissions::RegisterProfilePrefs(registry); | 583 chromeos::KeyPermissions::RegisterProfilePrefs(registry); |
| 582 chromeos::MultiProfileUserController::RegisterProfilePrefs(registry); | 584 chromeos::MultiProfileUserController::RegisterProfilePrefs(registry); |
| 583 chromeos::PinStorage::RegisterProfilePrefs(registry); | 585 chromeos::PinStorage::RegisterProfilePrefs(registry); |
| 584 chromeos::Preferences::RegisterProfilePrefs(registry); | 586 chromeos::Preferences::RegisterProfilePrefs(registry); |
| 585 chromeos::PrintersManager::RegisterProfilePrefs(registry); | 587 chromeos::PrintersManager::RegisterProfilePrefs(registry); |
| 586 chromeos::RegisterQuickUnlockProfilePrefs(registry); | 588 chromeos::RegisterQuickUnlockProfilePrefs(registry); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 727 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); | 729 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); |
| 728 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); | 730 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); |
| 729 | 731 |
| 730 #if BUILDFLAG(ENABLE_EXTENSIONS) | 732 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 731 // Added 2/2017. | 733 // Added 2/2017. |
| 732 profile_prefs->ClearPref(kToolbarMigratedComponentActionStatus); | 734 profile_prefs->ClearPref(kToolbarMigratedComponentActionStatus); |
| 733 #endif | 735 #endif |
| 734 } | 736 } |
| 735 | 737 |
| 736 } // namespace chrome | 738 } // namespace chrome |
| OLD | NEW |