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

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

Issue 1662523004: Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2015 The Chromium Authors. All rights reserved. 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 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 "ios/chrome/browser/net/http_server_properties_manager_factory.h" 5 #include "ios/chrome/browser/net/http_server_properties_manager_factory.h"
6 6
7 #include "base/prefs/pref_change_registrar.h"
8 #include "base/prefs/pref_service.h"
9 #include "components/pref_registry/pref_registry_syncable.h" 7 #include "components/pref_registry/pref_registry_syncable.h"
8 #include "components/prefs/pref_change_registrar.h"
9 #include "components/prefs/pref_service.h"
10 #include "ios/chrome/browser/pref_names.h" 10 #include "ios/chrome/browser/pref_names.h"
11 #include "ios/web/public/web_thread.h" 11 #include "ios/web/public/web_thread.h"
12 #include "net/http/http_server_properties_manager.h" 12 #include "net/http/http_server_properties_manager.h"
13 13
14 namespace { 14 namespace {
15 15
16 class PrefServiceAdapter 16 class PrefServiceAdapter
17 : public net::HttpServerPropertiesManager::PrefDelegate { 17 : public net::HttpServerPropertiesManager::PrefDelegate {
18 public: 18 public:
19 explicit PrefServiceAdapter(PrefService* pref_service) 19 explicit PrefServiceAdapter(PrefService* pref_service)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 return new net::HttpServerPropertiesManager( 58 return new net::HttpServerPropertiesManager(
59 new PrefServiceAdapter(pref_service), // Transfers ownership. 59 new PrefServiceAdapter(pref_service), // Transfers ownership.
60 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO)); 60 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO));
61 } 61 }
62 62
63 // static 63 // static
64 void HttpServerPropertiesManagerFactory::RegisterProfilePrefs( 64 void HttpServerPropertiesManagerFactory::RegisterProfilePrefs(
65 user_prefs::PrefRegistrySyncable* registry) { 65 user_prefs::PrefRegistrySyncable* registry) {
66 registry->RegisterDictionaryPref(prefs::kHttpServerProperties); 66 registry->RegisterDictionaryPref(prefs::kHttpServerProperties);
67 } 67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698