| Index: services/ui/gpu/gpu_service_impl.cc
|
| diff --git a/services/ui/gpu/gpu_service_impl.cc b/services/ui/gpu/gpu_service_impl.cc
|
| index f0e6013217e9cfce2a69e4126ecdd3117dd32999..5830c41d538ec227ea0463ed1934dc40cbddaba0 100644
|
| --- a/services/ui/gpu/gpu_service_impl.cc
|
| +++ b/services/ui/gpu/gpu_service_impl.cc
|
| @@ -15,9 +15,13 @@ namespace {
|
| void EstablishGpuChannelDone(
|
| const mojom::GpuService::EstablishGpuChannelCallback& callback,
|
| int32_t client_id,
|
| - const IPC::ChannelHandle& channel_handle) {
|
| + IPC::ChannelHandle* channel_handle) {
|
| // TODO(penghuang): Send the real GPUInfo to the client.
|
| - callback.Run(client_id, mojom::ChannelHandle::From(channel_handle),
|
| + mojo::MessagePipeHandle handle;
|
| + if (channel_handle)
|
| + handle = channel_handle->mojo_handle;
|
| + callback.Run(client_id,
|
| + mojo::ScopedMessagePipeHandle(handle),
|
| gpu::GPUInfo());
|
| }
|
| }
|
|
|