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

Unified Diff: content/gpu/gpu_child_thread.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
« no previous file with comments | « content/child/mojo/mojo_application.h ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index da636425dc0810f6663ca01facfce4d78c6ffb4a..2f05bb5f907bf75231814ff39e672059ecfef92f 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -222,12 +222,13 @@ void GpuChildThread::Init(const base::Time& process_start_time) {
// Use of base::Unretained(this) is safe here because |service_registry()|
// will be destroyed before GpuChildThread is destructed.
- interface_registry()->AddInterface(base::Bind(
+ GetInterfaceRegistry()->AddInterface(base::Bind(
&GpuChildThread::BindProcessControlRequest, base::Unretained(this)));
if (GetContentClient()->gpu()) { // NULL in tests.
GetContentClient()->gpu()->Initialize(this);
- GetContentClient()->gpu()->RegisterMojoInterfaces(interface_registry());
+ GetContentClient()->gpu()->ExposeInterfacesToBrowser(
+ GetInterfaceRegistry());
}
}
« no previous file with comments | « content/child/mojo/mojo_application.h ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698