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

Unified Diff: content/public/test/mock_render_thread.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
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_render_thread.cc
diff --git a/content/public/test/mock_render_thread.cc b/content/public/test/mock_render_thread.cc
index f0cda4f5bd1a001f69d388a279b4144877bdbad5..455f2f1cc8922dc0b4053a8a214e23f1c89eafe7 100644
--- a/content/public/test/mock_render_thread.cc
+++ b/content/public/test/mock_render_thread.cc
@@ -232,8 +232,10 @@ ServiceManagerConnection* MockRenderThread::GetServiceManagerConnection() {
}
service_manager::InterfaceRegistry* MockRenderThread::GetInterfaceRegistry() {
- if (!interface_registry_)
- interface_registry_.reset(new service_manager::InterfaceRegistry);
+ if (!interface_registry_) {
+ interface_registry_ = base::MakeUnique<service_manager::InterfaceRegistry>(
+ service_manager::Identity(), service_manager::InterfaceProviderSpec());
+ }
return interface_registry_.get();
}
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698