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

Unified Diff: chrome/browser/net/http_server_properties_manager_factory.cc

Issue 378823002: Move http_server_properties_manager from chrome/browser/net to net/http. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix renames in comments. Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/http_server_properties_manager_factory.cc
diff --git a/chrome/browser/net/http_server_properties_manager_factory.cc b/chrome/browser/net/http_server_properties_manager_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..72acd43d1526992e951eeba898a1759b931a5fdf
--- /dev/null
+++ b/chrome/browser/net/http_server_properties_manager_factory.cc
@@ -0,0 +1,32 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/net/http_server_properties_manager_factory.h"
+
+#include "chrome/common/pref_names.h"
+#include "components/pref_registry/pref_registry_syncable.h"
+#include "content/public/browser/browser_thread.h"
+#include "net/http/http_server_properties_manager.h"
+
+namespace chrome_browser_net {
+
+/* static */
+net::HttpServerPropertiesManager*
+HttpServerPropertiesManagerFactory::CreateManager(PrefService* pref_service) {
+ using content::BrowserThread;
+ return new net::HttpServerPropertiesManager(
+ pref_service,
+ prefs::kHttpServerProperties,
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
+}
+
+/* static */
+void HttpServerPropertiesManagerFactory::RegisterProfilePrefs(
+ user_prefs::PrefRegistrySyncable* registry) {
+ registry->RegisterDictionaryPref(
+ prefs::kHttpServerProperties,
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+}
+
+} // namespace chrome_browser_net

Powered by Google App Engine
This is Rietveld 408576698