1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ios/chrome/browser/net/http_server_properties_manager_factory.h"
7 #include "components/pref_registry/pref_registry_syncable.h"
8 #include "ios/chrome/browser/pref_names.h"
9 #include "ios/web/public/web_thread.h"
10 #include "net/http/http_server_properties_manager.h"
13 net::HttpServerPropertiesManager
*
14 HttpServerPropertiesManagerFactory::CreateManager(PrefService
* pref_service
) {
15 return new net::HttpServerPropertiesManager(
16 pref_service
, ios::prefs::kHttpServerProperties
,
17 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO
));
21 void HttpServerPropertiesManagerFactory::RegisterProfilePrefs(
22 user_prefs::PrefRegistrySyncable
* registry
) {
23 registry
->RegisterDictionaryPref(ios::prefs::kHttpServerProperties
);