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/invert_bubble_prefs.h" | 15 #include "chrome/browser/accessibility/invert_bubble_prefs.h" |
16 #include "chrome/browser/autocomplete/zero_suggest_provider.h" | 16 #include "chrome/browser/autocomplete/zero_suggest_provider.h" |
17 #include "chrome/browser/browser_process_impl.h" | 17 #include "chrome/browser/browser_process_impl.h" |
18 #include "chrome/browser/browser_shutdown.h" | 18 #include "chrome/browser/browser_shutdown.h" |
19 #include "chrome/browser/chrome_content_browser_client.h" | 19 #include "chrome/browser/chrome_content_browser_client.h" |
20 #include "chrome/browser/component_updater/recovery_component_installer.h" | 20 #include "chrome/browser/component_updater/recovery_component_installer.h" |
21 #include "chrome/browser/content_settings/host_content_settings_map.h" | |
22 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 21 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
23 #include "chrome/browser/devtools/devtools_window.h" | 22 #include "chrome/browser/devtools/devtools_window.h" |
24 #include "chrome/browser/download/download_prefs.h" | 23 #include "chrome/browser/download/download_prefs.h" |
25 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 24 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
26 #include "chrome/browser/first_run/first_run.h" | 25 #include "chrome/browser/first_run/first_run.h" |
27 #include "chrome/browser/geolocation/geolocation_prefs.h" | 26 #include "chrome/browser/geolocation/geolocation_prefs.h" |
28 #include "chrome/browser/google/google_url_tracker_factory.h" | 27 #include "chrome/browser/google/google_url_tracker_factory.h" |
29 #include "chrome/browser/gpu/gl_string_manager.h" | 28 #include "chrome/browser/gpu/gl_string_manager.h" |
30 #include "chrome/browser/gpu/gpu_mode_manager.h" | 29 #include "chrome/browser/gpu/gpu_mode_manager.h" |
31 #include "chrome/browser/intranet_redirect_detector.h" | 30 #include "chrome/browser/intranet_redirect_detector.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 #include "chrome/browser/ui/webui/instant_ui.h" | 75 #include "chrome/browser/ui/webui/instant_ui.h" |
77 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 76 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
78 #include "chrome/browser/ui/webui/plugins_ui.h" | 77 #include "chrome/browser/ui/webui/plugins_ui.h" |
79 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" | 78 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" |
80 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" | 79 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" |
81 #include "chrome/browser/upgrade_detector.h" | 80 #include "chrome/browser/upgrade_detector.h" |
82 #include "chrome/browser/web_resource/promo_resource_service.h" | 81 #include "chrome/browser/web_resource/promo_resource_service.h" |
83 #include "chrome/common/pref_names.h" | 82 #include "chrome/common/pref_names.h" |
84 #include "components/autofill/core/browser/autofill_manager.h" | 83 #include "components/autofill/core/browser/autofill_manager.h" |
85 #include "components/bookmarks/browser/bookmark_utils.h" | 84 #include "components/bookmarks/browser/bookmark_utils.h" |
| 85 #include "components/content_settings/core/browser/host_content_settings_map.h" |
86 #include "components/dom_distiller/core/distilled_page_prefs.h" | 86 #include "components/dom_distiller/core/distilled_page_prefs.h" |
87 #include "components/enhanced_bookmarks/bookmark_server_cluster_service.h" | 87 #include "components/enhanced_bookmarks/bookmark_server_cluster_service.h" |
88 #include "components/gcm_driver/gcm_channel_status_syncer.h" | 88 #include "components/gcm_driver/gcm_channel_status_syncer.h" |
89 #include "components/google/core/browser/google_pref_names.h" | 89 #include "components/google/core/browser/google_pref_names.h" |
90 #include "components/google/core/browser/google_url_tracker.h" | 90 #include "components/google/core/browser/google_url_tracker.h" |
91 #include "components/network_time/network_time_tracker.h" | 91 #include "components/network_time/network_time_tracker.h" |
92 #include "components/password_manager/core/browser/password_manager.h" | 92 #include "components/password_manager/core/browser/password_manager.h" |
93 #include "components/pref_registry/pref_registry_syncable.h" | 93 #include "components/pref_registry/pref_registry_syncable.h" |
94 #include "components/rappor/rappor_service.h" | 94 #include "components/rappor/rappor_service.h" |
95 #include "components/search_engines/template_url_prepopulate_data.h" | 95 #include "components/search_engines/template_url_prepopulate_data.h" |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 host_zoom_dictionary, false /* sanitize_partition_host_zoom_levels */); | 693 host_zoom_dictionary, false /* sanitize_partition_host_zoom_levels */); |
694 | 694 |
695 // We're done migrating the profile per-host zoom level values, so we clear | 695 // We're done migrating the profile per-host zoom level values, so we clear |
696 // them all. | 696 // them all. |
697 DictionaryPrefUpdate host_zoom_dictionary_update( | 697 DictionaryPrefUpdate host_zoom_dictionary_update( |
698 prefs, prefs::kPerHostZoomLevelsDeprecated); | 698 prefs, prefs::kPerHostZoomLevelsDeprecated); |
699 host_zoom_dictionary_update->Clear(); | 699 host_zoom_dictionary_update->Clear(); |
700 } | 700 } |
701 | 701 |
702 } // namespace chrome | 702 } // namespace chrome |
OLD | NEW |