Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1172)

Side by Side Diff: chrome/browser/net/http_server_properties_manager_factory.cc

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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/net/http_server_properties_manager_factory.h" 5 #include "chrome/browser/net/http_server_properties_manager_factory.h"
6 6
7 #include "chrome/common/pref_names.h" 7 #include "chrome/common/pref_names.h"
8 #include "components/pref_registry/pref_registry_syncable.h" 8 #include "components/pref_registry/pref_registry_syncable.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 #include "net/http/http_server_properties_manager.h" 10 #include "net/http/http_server_properties_manager.h"
11 11
12 namespace chrome_browser_net { 12 namespace chrome_browser_net {
13 13
14 /* static */ 14 /* static */
15 net::HttpServerPropertiesManager* 15 net::HttpServerPropertiesManager*
16 HttpServerPropertiesManagerFactory::CreateManager(PrefService* pref_service) { 16 HttpServerPropertiesManagerFactory::CreateManager(PrefService* pref_service) {
17 using content::BrowserThread; 17 using content::BrowserThread;
18 return new net::HttpServerPropertiesManager( 18 return new net::HttpServerPropertiesManager(
19 pref_service, 19 pref_service,
20 prefs::kHttpServerProperties, 20 prefs::kHttpServerProperties,
21 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); 21 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
22 } 22 }
23 23
24 /* static */ 24 /* static */
25 void HttpServerPropertiesManagerFactory::RegisterProfilePrefs( 25 void HttpServerPropertiesManagerFactory::RegisterProfilePrefs(
26 user_prefs::PrefRegistrySyncable* registry) { 26 user_prefs::PrefRegistrySyncable* registry) {
27 registry->RegisterDictionaryPref( 27 registry->RegisterDictionaryPref(prefs::kHttpServerProperties);
28 prefs::kHttpServerProperties,
29 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
30 } 28 }
31 29
32 } // namespace chrome_browser_net 30 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « chrome/browser/metrics/variations/variations_service.cc ('k') | chrome/browser/net/net_pref_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698