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

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

Issue 1658793002: Update chrome for new prefs location. (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
« no previous file with comments | « chrome/browser/net/dns_probe_browsertest.cc ('k') | chrome/browser/net/net_error_tab_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/prefs/pref_change_registrar.h"
8 #include "base/prefs/pref_service.h"
9 #include "chrome/common/pref_names.h" 7 #include "chrome/common/pref_names.h"
10 #include "components/pref_registry/pref_registry_syncable.h" 8 #include "components/pref_registry/pref_registry_syncable.h"
9 #include "components/prefs/pref_change_registrar.h"
10 #include "components/prefs/pref_service.h"
11 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_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 // Connects the HttpServerPropertiesManager's storage to the Chrome prefs. 16 // Connects the HttpServerPropertiesManager's storage to the Chrome prefs.
17 class PrefServiceAdapter 17 class PrefServiceAdapter
18 : public net::HttpServerPropertiesManager::PrefDelegate { 18 : public net::HttpServerPropertiesManager::PrefDelegate {
19 public: 19 public:
20 explicit PrefServiceAdapter(PrefService* pref_service) 20 explicit PrefServiceAdapter(PrefService* pref_service)
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); 66 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
67 } 67 }
68 68
69 /* static */ 69 /* static */
70 void HttpServerPropertiesManagerFactory::RegisterProfilePrefs( 70 void HttpServerPropertiesManagerFactory::RegisterProfilePrefs(
71 user_prefs::PrefRegistrySyncable* registry) { 71 user_prefs::PrefRegistrySyncable* registry) {
72 registry->RegisterDictionaryPref(prefs::kHttpServerProperties); 72 registry->RegisterDictionaryPref(prefs::kHttpServerProperties);
73 } 73 }
74 74
75 } // namespace chrome_browser_net 75 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « chrome/browser/net/dns_probe_browsertest.cc ('k') | chrome/browser/net/net_error_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698