| Index: content/gpu/gpu_child_thread.cc
|
| diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
|
| index 6eee7220acd55d4fc2c1bbc1916e39f4a11e0a58..082c1d2ac3bad354113df03df4b928abcedad234 100644
|
| --- a/content/gpu/gpu_child_thread.cc
|
| +++ b/content/gpu/gpu_child_thread.cc
|
| @@ -223,9 +223,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) {
|
| @@ -404,6 +401,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()
|
|
|