Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / net / http_server_properties_manager_factory.cc
blob72acd43d1526992e951eeba898a1759b931a5fdf
1 // Copyright 2014 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 "chrome/browser/net/http_server_properties_manager_factory.h"
7 #include "chrome/common/pref_names.h"
8 #include "components/pref_registry/pref_registry_syncable.h"
9 #include "content/public/browser/browser_thread.h"
10 #include "net/http/http_server_properties_manager.h"
12 namespace chrome_browser_net {
14 /* static */
15 net::HttpServerPropertiesManager*
16 HttpServerPropertiesManagerFactory::CreateManager(PrefService* pref_service) {
17 using content::BrowserThread;
18 return new net::HttpServerPropertiesManager(
19 pref_service,
20 prefs::kHttpServerProperties,
21 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
24 /* static */
25 void HttpServerPropertiesManagerFactory::RegisterProfilePrefs(
26 user_prefs::PrefRegistrySyncable* registry) {
27 registry->RegisterDictionaryPref(
28 prefs::kHttpServerProperties,
29 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
32 } // namespace chrome_browser_net