Index: content/renderer/render_thread_impl.cc |
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc |
index 47662bb15f0929e37da18be1069d8472bcf85126..ccdb4cc8fa9b96bb26a7bf33d086ced0667d421c 100644 |
--- a/content/renderer/render_thread_impl.cc |
+++ b/content/renderer/render_thread_impl.cc |
@@ -146,6 +146,10 @@ |
#include "content/renderer/npapi/plugin_channel_host.h" |
#endif |
+#if defined(USE_MOJO) |
+#include "content/renderer/mojo/mojo_render_process_observer.h" |
+#endif |
+ |
using base::ThreadRestrictions; |
using blink::WebDocument; |
using blink::WebFrame; |
@@ -393,6 +397,11 @@ void RenderThreadImpl::Init() { |
AddFilter((new EmbeddedWorkerContextMessageFilter())->GetFilter()); |
+#if defined(USE_MOJO) |
+ // MojoRenderProcessObserver deletes itself as necessary. |
+ new MojoRenderProcessObserver(this); |
+#endif |
+ |
GetContentClient()->renderer()->RenderThreadStarted(); |
InitSkiaEventTracer(); |