| 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/budget_service/budget_manager.h" | |
| 18 #include "chrome/browser/chrome_content_browser_client.h" | 17 #include "chrome/browser/chrome_content_browser_client.h" |
| 19 #include "chrome/browser/component_updater/component_updater_prefs.h" | 18 #include "chrome/browser/component_updater/component_updater_prefs.h" |
| 20 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 19 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 21 #include "chrome/browser/devtools/devtools_window.h" | 20 #include "chrome/browser/devtools/devtools_window.h" |
| 22 #include "chrome/browser/download/download_prefs.h" | 21 #include "chrome/browser/download/download_prefs.h" |
| 23 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 22 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
| 24 #include "chrome/browser/first_run/first_run.h" | 23 #include "chrome/browser/first_run/first_run.h" |
| 25 #include "chrome/browser/geolocation/geolocation_prefs.h" | 24 #include "chrome/browser/geolocation/geolocation_prefs.h" |
| 26 #include "chrome/browser/gpu/gpu_mode_manager.h" | 25 #include "chrome/browser/gpu/gpu_mode_manager.h" |
| 27 #include "chrome/browser/gpu/gpu_profile_cache.h" | 26 #include "chrome/browser/gpu/gpu_profile_cache.h" |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 RegisterBrowserViewLocalPrefs(registry); | 468 RegisterBrowserViewLocalPrefs(registry); |
| 470 #endif | 469 #endif |
| 471 } | 470 } |
| 472 | 471 |
| 473 // Register prefs applicable to all profiles. | 472 // Register prefs applicable to all profiles. |
| 474 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 473 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
| 475 TRACE_EVENT0("browser", "chrome::RegisterProfilePrefs"); | 474 TRACE_EVENT0("browser", "chrome::RegisterProfilePrefs"); |
| 476 SCOPED_UMA_HISTOGRAM_TIMER("Settings.RegisterProfilePrefsTime"); | 475 SCOPED_UMA_HISTOGRAM_TIMER("Settings.RegisterProfilePrefsTime"); |
| 477 // User prefs. Please keep this list alphabetized. | 476 // User prefs. Please keep this list alphabetized. |
| 478 autofill::AutofillManager::RegisterProfilePrefs(registry); | 477 autofill::AutofillManager::RegisterProfilePrefs(registry); |
| 479 BudgetManager::RegisterProfilePrefs(registry); | |
| 480 syncer::SyncPrefs::RegisterProfilePrefs(registry); | 478 syncer::SyncPrefs::RegisterProfilePrefs(registry); |
| 481 ChromeContentBrowserClient::RegisterProfilePrefs(registry); | 479 ChromeContentBrowserClient::RegisterProfilePrefs(registry); |
| 482 ChromeVersionService::RegisterProfilePrefs(registry); | 480 ChromeVersionService::RegisterProfilePrefs(registry); |
| 483 chrome_browser_net::HttpServerPropertiesManagerFactory::RegisterProfilePrefs( | 481 chrome_browser_net::HttpServerPropertiesManagerFactory::RegisterProfilePrefs( |
| 484 registry); | 482 registry); |
| 485 chrome_browser_net::Predictor::RegisterProfilePrefs(registry); | 483 chrome_browser_net::Predictor::RegisterProfilePrefs(registry); |
| 486 chrome_browser_net::RegisterPredictionOptionsProfilePrefs(registry); | 484 chrome_browser_net::RegisterPredictionOptionsProfilePrefs(registry); |
| 487 chrome_prefs::RegisterProfilePrefs(registry); | 485 chrome_prefs::RegisterProfilePrefs(registry); |
| 488 dom_distiller::DistilledPagePrefs::RegisterProfilePrefs(registry); | 486 dom_distiller::DistilledPagePrefs::RegisterProfilePrefs(registry); |
| 489 DownloadPrefs::RegisterProfilePrefs(registry); | 487 DownloadPrefs::RegisterProfilePrefs(registry); |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 // Added 8/2016. | 790 // Added 8/2016. |
| 793 profile_prefs->ClearPref(kStaticEncodings); | 791 profile_prefs->ClearPref(kStaticEncodings); |
| 794 profile_prefs->ClearPref(kRecentlySelectedEncoding); | 792 profile_prefs->ClearPref(kRecentlySelectedEncoding); |
| 795 | 793 |
| 796 // Added 9/2016. | 794 // Added 9/2016. |
| 797 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); | 795 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); |
| 798 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); | 796 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); |
| 799 } | 797 } |
| 800 | 798 |
| 801 } // namespace chrome | 799 } // namespace chrome |
| OLD | NEW |