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

Unified Diff: content/browser/utility_process_host_impl.cc

Issue 2099063002: Migrate RenderProcessHost, ChildThread to InterfaceRegistry/Provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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/browser/utility_process_host_impl.cc
diff --git a/content/browser/utility_process_host_impl.cc b/content/browser/utility_process_host_impl.cc
index b211eeb62040b226e378992cb67a6bd58d542439..89e9c9f9e75640d18e40d4e80a36da12e8ad8123 100644
--- a/content/browser/utility_process_host_impl.cc
+++ b/content/browser/utility_process_host_impl.cc
@@ -37,6 +37,8 @@
#include "content/public/common/sandboxed_process_launcher_delegate.h"
#include "ipc/ipc_switches.h"
#include "mojo/edk/embedder/embedder.h"
+#include "services/shell/public/cpp/interface_provider.h"
+#include "services/shell/public/cpp/interface_registry.h"
#include "ui/base/ui_base_switches.h"
#if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
@@ -225,9 +227,14 @@ bool UtilityProcessHostImpl::Start() {
return StartProcess();
}
-ServiceRegistry* UtilityProcessHostImpl::GetServiceRegistry() {
+shell::InterfaceRegistry* UtilityProcessHostImpl::GetInterfaceRegistry() {
DCHECK(mojo_application_host_);
- return mojo_application_host_->service_registry();
+ return mojo_application_host_->interface_registry();
+}
+
+shell::InterfaceProvider* UtilityProcessHostImpl::GetRemoteInterfaces() {
+ DCHECK(mojo_application_host_);
+ return mojo_application_host_->remote_interfaces();
}
void UtilityProcessHostImpl::SetName(const base::string16& name) {
« no previous file with comments | « content/browser/utility_process_host_impl.h ('k') | content/browser/utility_process_host_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698