Chromium Code Reviews| Index: chrome/browser/prefs/browser_prefs.cc |
| diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc |
| index 39058b0ea052cb60339a8ed35a2eb34940494b1b..484c5aab6a6b32bdb0fdf5ab2cf7041366dcb53f 100644 |
| --- a/chrome/browser/prefs/browser_prefs.cc |
| +++ b/chrome/browser/prefs/browser_prefs.cc |
| @@ -37,7 +37,6 @@ |
| #include "chrome/browser/media/media_stream_devices_controller.h" |
| #include "chrome/browser/metrics/chrome_metrics_service_client.h" |
| #include "chrome/browser/metrics/variations/variations_service.h" |
| -#include "chrome/browser/net/http_server_properties_manager.h" |
| #include "chrome/browser/net/net_pref_observer.h" |
| #include "chrome/browser/net/prediction_options.h" |
| #include "chrome/browser/net/predictor.h" |
| @@ -96,6 +95,7 @@ |
| #include "components/translate/core/browser/translate_prefs.h" |
| #include "content/public/browser/render_process_host.h" |
| #include "extensions/browser/extension_prefs.h" |
| +#include "net/http/http_server_properties_manager.h" |
| #if defined(ENABLE_AUTOFILL_DIALOG) |
| #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
| @@ -222,6 +222,14 @@ const char kBackupPref[] = "backup"; |
| const char kSyncPromoErrorMessage[] = "sync_promo.error_message"; |
| #endif |
| +// Register |prefs| for properties managed by HttpServerPropertiesManager. |
| +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.
|
| + user_prefs::PrefRegistrySyncable* prefs) { |
| + prefs->RegisterDictionaryPref( |
| + prefs::kHttpServerProperties, |
| + user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| +} |
| + |
| } // namespace |
| namespace chrome { |
| @@ -353,8 +361,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
| sync_driver::SyncPrefs::RegisterProfilePrefs(registry); |
| ChromeContentBrowserClient::RegisterProfilePrefs(registry); |
| ChromeVersionService::RegisterProfilePrefs(registry); |
| - chrome_browser_net::HttpServerPropertiesManager::RegisterProfilePrefs( |
| - registry); |
| + 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.
|
| chrome_browser_net::Predictor::RegisterProfilePrefs(registry); |
| chrome_browser_net::RegisterPredictionOptionsProfilePrefs(registry); |
| chrome_prefs::RegisterProfilePrefs(registry); |