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/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/prefs/pref_registry_simple.h" | 11 #include "base/prefs/pref_registry_simple.h" |
12 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
13 #include "base/prefs/scoped_user_pref_update.h" | 13 #include "base/prefs/scoped_user_pref_update.h" |
14 #include "chrome/browser/about_flags.h" | 14 #include "chrome/browser/about_flags.h" |
| 15 #include "chrome/browser/accessibility/animation_policy_prefs.h" |
15 #include "chrome/browser/accessibility/invert_bubble_prefs.h" | 16 #include "chrome/browser/accessibility/invert_bubble_prefs.h" |
16 #include "chrome/browser/autocomplete/zero_suggest_provider.h" | 17 #include "chrome/browser/autocomplete/zero_suggest_provider.h" |
17 #include "chrome/browser/browser_process_impl.h" | 18 #include "chrome/browser/browser_process_impl.h" |
18 #include "chrome/browser/browser_shutdown.h" | 19 #include "chrome/browser/browser_shutdown.h" |
19 #include "chrome/browser/chrome_content_browser_client.h" | 20 #include "chrome/browser/chrome_content_browser_client.h" |
20 #include "chrome/browser/component_updater/recovery_component_installer.h" | 21 #include "chrome/browser/component_updater/recovery_component_installer.h" |
21 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 22 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
22 #include "chrome/browser/devtools/devtools_window.h" | 23 #include "chrome/browser/devtools/devtools_window.h" |
23 #include "chrome/browser/download/download_prefs.h" | 24 #include "chrome/browser/download/download_prefs.h" |
24 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 25 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 NetPrefObserver::RegisterProfilePrefs(registry); | 405 NetPrefObserver::RegisterProfilePrefs(registry); |
405 password_manager::PasswordManager::RegisterProfilePrefs(registry); | 406 password_manager::PasswordManager::RegisterProfilePrefs(registry); |
406 password_manager::urls_collection_experiment::RegisterPrefs(registry); | 407 password_manager::urls_collection_experiment::RegisterPrefs(registry); |
407 password_bubble_experiment::RegisterPrefs(registry); | 408 password_bubble_experiment::RegisterPrefs(registry); |
408 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); | 409 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); |
409 PrefsTabHelper::RegisterProfilePrefs(registry); | 410 PrefsTabHelper::RegisterProfilePrefs(registry); |
410 Profile::RegisterProfilePrefs(registry); | 411 Profile::RegisterProfilePrefs(registry); |
411 ProfileImpl::RegisterProfilePrefs(registry); | 412 ProfileImpl::RegisterProfilePrefs(registry); |
412 PromoResourceService::RegisterProfilePrefs(registry); | 413 PromoResourceService::RegisterProfilePrefs(registry); |
413 ProtocolHandlerRegistry::RegisterProfilePrefs(registry); | 414 ProtocolHandlerRegistry::RegisterProfilePrefs(registry); |
| 415 RegisterAnimationPolicyPrefs(registry); |
414 RegisterBrowserUserPrefs(registry); | 416 RegisterBrowserUserPrefs(registry); |
415 SessionStartupPref::RegisterProfilePrefs(registry); | 417 SessionStartupPref::RegisterProfilePrefs(registry); |
416 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); | 418 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); |
417 translate::TranslatePrefs::RegisterProfilePrefs(registry); | 419 translate::TranslatePrefs::RegisterProfilePrefs(registry); |
418 ZeroSuggestProvider::RegisterProfilePrefs(registry); | 420 ZeroSuggestProvider::RegisterProfilePrefs(registry); |
419 | 421 |
420 #if defined(ENABLE_APP_LIST) | 422 #if defined(ENABLE_APP_LIST) |
421 app_list::AppListPrefs::RegisterProfilePrefs(registry); | 423 app_list::AppListPrefs::RegisterProfilePrefs(registry); |
422 #endif | 424 #endif |
423 | 425 |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 host_zoom_dictionary, false /* sanitize_partition_host_zoom_levels */); | 682 host_zoom_dictionary, false /* sanitize_partition_host_zoom_levels */); |
681 | 683 |
682 // We're done migrating the profile per-host zoom level values, so we clear | 684 // We're done migrating the profile per-host zoom level values, so we clear |
683 // them all. | 685 // them all. |
684 DictionaryPrefUpdate host_zoom_dictionary_update( | 686 DictionaryPrefUpdate host_zoom_dictionary_update( |
685 prefs, prefs::kPerHostZoomLevelsDeprecated); | 687 prefs, prefs::kPerHostZoomLevelsDeprecated); |
686 host_zoom_dictionary_update->Clear(); | 688 host_zoom_dictionary_update->Clear(); |
687 } | 689 } |
688 | 690 |
689 } // namespace chrome | 691 } // namespace chrome |
OLD | NEW |