Index: content/renderer/render_thread_impl.cc |
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc |
index 8934a31febddd5bed83954f877035734b69fc865..6e124b321bd57e00648a24a0f89601475a47487a 100644 |
--- a/content/renderer/render_thread_impl.cc |
+++ b/content/renderer/render_thread_impl.cc |
@@ -405,9 +405,6 @@ void RenderThreadImpl::Init() { |
AddFilter((new EmbeddedWorkerContextMessageFilter())->GetFilter()); |
- gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader()); |
- AddObserver(gamepad_shared_memory_reader_.get()); |
- |
GetContentClient()->renderer()->RenderThreadStarted(); |
InitSkiaEventTracer(); |
@@ -792,6 +789,10 @@ void RenderThreadImpl::EnsureWebKitInitialized() { |
CompositorOutputSurface::CreateFilter(output_surface_loop.get()); |
AddFilter(compositor_output_surface_filter_.get()); |
+ gamepad_shared_memory_reader_.reset( |
+ new GamepadSharedMemoryReader(webkit_platform_support_.get())); |
+ AddObserver(gamepad_shared_memory_reader_.get()); |
+ |
RenderThreadImpl::RegisterSchemes(); |
EnableBlinkPlatformLogChannels( |