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

Unified Diff: content/child/child_thread_impl.cc

Issue 2446313003: Revise InterfaceRegistry API to support filtering interfaces @ Bind() time. (Closed)
Patch Set: . Created 4 years, 2 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: content/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index e166b19fa9c482f7dcd271540b6e71976f831819..45b0ec6d299da122f6ce29c251dfa1484294973f 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -656,8 +656,10 @@ ServiceManagerConnection* ChildThreadImpl::GetServiceManagerConnection() {
}
service_manager::InterfaceRegistry* ChildThreadImpl::GetInterfaceRegistry() {
- if (!interface_registry_.get())
- interface_registry_.reset(new service_manager::InterfaceRegistry);
+ if (!interface_registry_.get()) {
+ interface_registry_ = base::MakeUnique<service_manager::InterfaceRegistry>(
+ service_manager::Identity(), service_manager::InterfaceProviderSpec());
+ }
return interface_registry_.get();
}
« no previous file with comments | « content/browser/service_worker/embedded_worker_test_helper.cc ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698