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/prefs/pref_registry_simple.h" | 10 #include "base/prefs/pref_registry_simple.h" |
(...skipping 19 matching lines...) Expand all Loading... | |
30 #include "chrome/browser/google/google_url_tracker_factory.h" | 30 #include "chrome/browser/google/google_url_tracker_factory.h" |
31 #include "chrome/browser/gpu/gl_string_manager.h" | 31 #include "chrome/browser/gpu/gl_string_manager.h" |
32 #include "chrome/browser/gpu/gpu_mode_manager.h" | 32 #include "chrome/browser/gpu/gpu_mode_manager.h" |
33 #include "chrome/browser/intranet_redirect_detector.h" | 33 #include "chrome/browser/intranet_redirect_detector.h" |
34 #include "chrome/browser/io_thread.h" | 34 #include "chrome/browser/io_thread.h" |
35 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 35 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
36 #include "chrome/browser/media/media_device_id_salt.h" | 36 #include "chrome/browser/media/media_device_id_salt.h" |
37 #include "chrome/browser/media/media_stream_devices_controller.h" | 37 #include "chrome/browser/media/media_stream_devices_controller.h" |
38 #include "chrome/browser/metrics/chrome_metrics_service_client.h" | 38 #include "chrome/browser/metrics/chrome_metrics_service_client.h" |
39 #include "chrome/browser/metrics/variations/variations_service.h" | 39 #include "chrome/browser/metrics/variations/variations_service.h" |
40 #include "chrome/browser/net/http_server_properties_manager.h" | |
41 #include "chrome/browser/net/net_pref_observer.h" | 40 #include "chrome/browser/net/net_pref_observer.h" |
42 #include "chrome/browser/net/prediction_options.h" | 41 #include "chrome/browser/net/prediction_options.h" |
43 #include "chrome/browser/net/predictor.h" | 42 #include "chrome/browser/net/predictor.h" |
44 #include "chrome/browser/net/pref_proxy_config_tracker_impl.h" | 43 #include "chrome/browser/net/pref_proxy_config_tracker_impl.h" |
45 #include "chrome/browser/net/ssl_config_service_manager.h" | 44 #include "chrome/browser/net/ssl_config_service_manager.h" |
46 #include "chrome/browser/notifications/desktop_notification_service.h" | 45 #include "chrome/browser/notifications/desktop_notification_service.h" |
47 #include "chrome/browser/notifications/message_center_notification_manager.h" | 46 #include "chrome/browser/notifications/message_center_notification_manager.h" |
48 #include "chrome/browser/pepper_flash_settings_manager.h" | 47 #include "chrome/browser/pepper_flash_settings_manager.h" |
49 #include "chrome/browser/plugins/plugin_finder.h" | 48 #include "chrome/browser/plugins/plugin_finder.h" |
50 #include "chrome/browser/prefs/chrome_pref_service_factory.h" | 49 #include "chrome/browser/prefs/chrome_pref_service_factory.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
89 #include "components/google/core/browser/google_url_tracker.h" | 88 #include "components/google/core/browser/google_url_tracker.h" |
90 #include "components/network_time/network_time_tracker.h" | 89 #include "components/network_time/network_time_tracker.h" |
91 #include "components/password_manager/core/browser/password_manager.h" | 90 #include "components/password_manager/core/browser/password_manager.h" |
92 #include "components/pref_registry/pref_registry_syncable.h" | 91 #include "components/pref_registry/pref_registry_syncable.h" |
93 #include "components/rappor/rappor_service.h" | 92 #include "components/rappor/rappor_service.h" |
94 #include "components/search_engines/template_url_prepopulate_data.h" | 93 #include "components/search_engines/template_url_prepopulate_data.h" |
95 #include "components/sync_driver/sync_prefs.h" | 94 #include "components/sync_driver/sync_prefs.h" |
96 #include "components/translate/core/browser/translate_prefs.h" | 95 #include "components/translate/core/browser/translate_prefs.h" |
97 #include "content/public/browser/render_process_host.h" | 96 #include "content/public/browser/render_process_host.h" |
98 #include "extensions/browser/extension_prefs.h" | 97 #include "extensions/browser/extension_prefs.h" |
98 #include "net/http/http_server_properties_manager.h" | |
99 | 99 |
100 #if defined(ENABLE_AUTOFILL_DIALOG) | 100 #if defined(ENABLE_AUTOFILL_DIALOG) |
101 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 101 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
102 #endif | 102 #endif |
103 | 103 |
104 #if defined(ENABLE_CONFIGURATION_POLICY) | 104 #if defined(ENABLE_CONFIGURATION_POLICY) |
105 #include "components/policy/core/browser/browser_policy_connector.h" | 105 #include "components/policy/core/browser/browser_policy_connector.h" |
106 #include "components/policy/core/browser/url_blacklist_manager.h" | 106 #include "components/policy/core/browser/url_blacklist_manager.h" |
107 #include "components/policy/core/common/policy_statistics_collector.h" | 107 #include "components/policy/core/common/policy_statistics_collector.h" |
108 #endif | 108 #endif |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
215 // registered. We keep it here for now to clear out those old prefs in | 215 // registered. We keep it here for now to clear out those old prefs in |
216 // MigrateUserPrefs. | 216 // MigrateUserPrefs. |
217 const char kBackupPref[] = "backup"; | 217 const char kBackupPref[] = "backup"; |
218 | 218 |
219 #if !defined(OS_ANDROID) | 219 #if !defined(OS_ANDROID) |
220 // The sync promo error message preference has been removed; this pref will | 220 // The sync promo error message preference has been removed; this pref will |
221 // be cleared from user data. | 221 // be cleared from user data. |
222 const char kSyncPromoErrorMessage[] = "sync_promo.error_message"; | 222 const char kSyncPromoErrorMessage[] = "sync_promo.error_message"; |
223 #endif | 223 #endif |
224 | 224 |
225 // Register |prefs| for properties managed by HttpServerPropertiesManager. | |
226 void HttpServerPropertiesManager_RegisterProfilePrefs( | |
droger
2014/07/08 13:06:02
Shouldn't this stay in the HttpServerPropertiesMan
mef
2014/07/08 13:32:00
The problem is that user_prefs::PrefRegistrySyncab
battre
2014/07/08 14:16:57
Bernhard, what do you think about this?
My feelin
Bernhard Bauer
2014/07/08 16:02:46
We already pass in the pref path for the HttpServe
mef
2014/07/08 16:19:54
Sounds good. Just to make sure that I understand c
Bernhard Bauer
2014/07/08 17:02:45
Yup, pretty much.
The only thing I'm not sure abo
mef
2014/07/08 17:11:20
I like ChromeHttpServerPropertiesManager, but I do
mef
2014/07/08 18:04:32
Done.
| |
227 user_prefs::PrefRegistrySyncable* prefs) { | |
228 prefs->RegisterDictionaryPref( | |
229 prefs::kHttpServerProperties, | |
230 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
231 } | |
232 | |
225 } // namespace | 233 } // namespace |
226 | 234 |
227 namespace chrome { | 235 namespace chrome { |
228 | 236 |
229 void RegisterLocalState(PrefRegistrySimple* registry) { | 237 void RegisterLocalState(PrefRegistrySimple* registry) { |
230 // Prefs in Local State. | 238 // Prefs in Local State. |
231 registry->RegisterIntegerPref(prefs::kMultipleProfilePrefMigration, 0); | 239 registry->RegisterIntegerPref(prefs::kMultipleProfilePrefMigration, 0); |
232 | 240 |
233 // Please keep this list alphabetized. | 241 // Please keep this list alphabetized. |
234 AppListService::RegisterPrefs(registry); | 242 AppListService::RegisterPrefs(registry); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
346 | 354 |
347 // Register prefs applicable to all profiles. | 355 // Register prefs applicable to all profiles. |
348 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 356 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
349 TRACE_EVENT0("browser", "chrome::RegisterUserPrefs"); | 357 TRACE_EVENT0("browser", "chrome::RegisterUserPrefs"); |
350 // User prefs. Please keep this list alphabetized. | 358 // User prefs. Please keep this list alphabetized. |
351 autofill::AutofillManager::RegisterProfilePrefs(registry); | 359 autofill::AutofillManager::RegisterProfilePrefs(registry); |
352 bookmark_utils::RegisterProfilePrefs(registry); | 360 bookmark_utils::RegisterProfilePrefs(registry); |
353 sync_driver::SyncPrefs::RegisterProfilePrefs(registry); | 361 sync_driver::SyncPrefs::RegisterProfilePrefs(registry); |
354 ChromeContentBrowserClient::RegisterProfilePrefs(registry); | 362 ChromeContentBrowserClient::RegisterProfilePrefs(registry); |
355 ChromeVersionService::RegisterProfilePrefs(registry); | 363 ChromeVersionService::RegisterProfilePrefs(registry); |
356 chrome_browser_net::HttpServerPropertiesManager::RegisterProfilePrefs( | 364 HttpServerPropertiesManager_RegisterProfilePrefs(registry); |
battre
2014/07/08 14:16:57
please consider the request to keep this alphabeti
Bernhard Bauer
2014/07/08 16:02:46
+1
mef
2014/07/08 16:19:54
Will do.
mef
2014/07/08 18:04:32
Done.
| |
357 registry); | |
358 chrome_browser_net::Predictor::RegisterProfilePrefs(registry); | 365 chrome_browser_net::Predictor::RegisterProfilePrefs(registry); |
359 chrome_browser_net::RegisterPredictionOptionsProfilePrefs(registry); | 366 chrome_browser_net::RegisterPredictionOptionsProfilePrefs(registry); |
360 chrome_prefs::RegisterProfilePrefs(registry); | 367 chrome_prefs::RegisterProfilePrefs(registry); |
361 DownloadPrefs::RegisterProfilePrefs(registry); | 368 DownloadPrefs::RegisterProfilePrefs(registry); |
362 easy_unlock::RegisterProfilePrefs(registry); | 369 easy_unlock::RegisterProfilePrefs(registry); |
363 gcm::GCMProfileService::RegisterProfilePrefs(registry); | 370 gcm::GCMProfileService::RegisterProfilePrefs(registry); |
364 HostContentSettingsMap::RegisterProfilePrefs(registry); | 371 HostContentSettingsMap::RegisterProfilePrefs(registry); |
365 IncognitoModePrefs::RegisterProfilePrefs(registry); | 372 IncognitoModePrefs::RegisterProfilePrefs(registry); |
366 InstantUI::RegisterProfilePrefs(registry); | 373 InstantUI::RegisterProfilePrefs(registry); |
367 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry); | 374 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry); |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
595 #if defined(OS_CHROMEOS) | 602 #if defined(OS_CHROMEOS) |
596 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); | 603 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); |
597 #endif | 604 #endif |
598 | 605 |
599 #if defined(TOOLKIT_VIEWS) | 606 #if defined(TOOLKIT_VIEWS) |
600 MigrateBrowserTabStripPrefs(local_state); | 607 MigrateBrowserTabStripPrefs(local_state); |
601 #endif | 608 #endif |
602 } | 609 } |
603 | 610 |
604 } // namespace chrome | 611 } // namespace chrome |
OLD | NEW |