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

Unified Diff: content/browser/mojo/mojo_shell_context.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/mojo/mojo_shell_context.cc
diff --git a/content/browser/mojo/mojo_shell_context.cc b/content/browser/mojo/mojo_shell_context.cc
index 4f4200e4ea88c98903cfb22cd44669c0690afaa5..cf4a0a3a6b7cc230742510d279d6924626a51225 100644
--- a/content/browser/mojo/mojo_shell_context.cc
+++ b/content/browser/mojo/mojo_shell_context.cc
@@ -27,7 +27,6 @@
#include "content/public/browser/utility_process_host_client.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_switches.h"
-#include "content/public/common/service_registry.h"
#include "mojo/edk/embedder/embedder.h"
#include "mojo/public/cpp/bindings/interface_request.h"
#include "mojo/public/cpp/bindings/string.h"
@@ -60,8 +59,7 @@ void StartUtilityProcessOnIOThread(
process_host->DisableSandbox();
process_host->Start();
- ServiceRegistry* services = process_host->GetServiceRegistry();
- services->ConnectToRemoteService(std::move(request));
+ process_host->GetRemoteInterfaces()->GetInterface(std::move(request));
}
void OnApplicationLoaded(const std::string& name, bool success) {
@@ -103,8 +101,7 @@ void RequestGpuProcessControl(
// load requests through mojom::ProcessControl will also fail. Make sure we
// handle
// these cases correctly.
- process_host->GetServiceRegistry()->ConnectToRemoteService(
- std::move(request));
+ process_host->GetRemoteInterfaces()->GetInterface(std::move(request));
}
void LaunchAppInGpuProcess(const std::string& app_name,
« no previous file with comments | « content/browser/mojo/mojo_application_host.cc ('k') | content/browser/renderer_host/render_process_host_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698