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

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

Issue 2567893002: Pass pref_task_runner through HttpServerPropertiesManager's cxtor so that tests could inject a Test… (Closed)
Patch Set: add comments to HttpServerPropertiesManager Created 4 years 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: ios/chrome/browser/net/http_server_properties_manager_factory.cc
diff --git a/ios/chrome/browser/net/http_server_properties_manager_factory.cc b/ios/chrome/browser/net/http_server_properties_manager_factory.cc
index e0d473b18f35df69db8f69581d07db5d5cc94358..955ceed32e246797855a1766b41859f9244fa46a 100644
--- a/ios/chrome/browser/net/http_server_properties_manager_factory.cc
+++ b/ios/chrome/browser/net/http_server_properties_manager_factory.cc
@@ -4,6 +4,7 @@
#include "ios/chrome/browser/net/http_server_properties_manager_factory.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_change_registrar.h"
#include "components/prefs/pref_service.h"
@@ -57,6 +58,7 @@ net::HttpServerPropertiesManager*
HttpServerPropertiesManagerFactory::CreateManager(PrefService* pref_service) {
return new net::HttpServerPropertiesManager(
new PrefServiceAdapter(pref_service), // Transfers ownership.
+ base::ThreadTaskRunnerHandle::Get(),
web::WebThread::GetTaskRunnerForThread(web::WebThread::IO));
}
« no previous file with comments | « components/cronet/android/cronet_url_request_context_adapter.cc ('k') | net/http/http_server_properties_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698