Index: content/gpu/gpu_child_thread.cc |
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc |
index 5b20df9338266167bd7042e35271fed2886e83a8..c49ede749f50c7acd82c3f75131fd6749ebd1512 100644 |
--- a/content/gpu/gpu_child_thread.cc |
+++ b/content/gpu/gpu_child_thread.cc |
@@ -216,9 +216,6 @@ void GpuChildThread::Init(const base::Time& process_start_time) { |
// will be destroyed before GpuChildThread is destructed. |
service_registry()->AddService(base::Bind( |
&GpuChildThread::BindProcessControlRequest, base::Unretained(this))); |
- |
- if (GetContentClient()->gpu()) // NULL in tests. |
- GetContentClient()->gpu()->RegisterMojoServices(service_registry()); |
} |
bool GpuChildThread::Send(IPC::Message* msg) { |
@@ -372,6 +369,10 @@ void GpuChildThread::OnInitialize(const gpu::GpuPreferences& gpu_preferences) { |
media_service_.reset(new MediaService(gpu_channel_manager_.get())); |
+ if (GetContentClient()->gpu()) // NULL in tests. |
+ GetContentClient()->gpu()->RegisterMojoServices(service_registry(), |
+ gpu_preferences_); |
+ |
#if defined(USE_OZONE) |
ui::OzonePlatform::GetInstance() |
->GetGpuPlatformSupport() |