Index: components/mus/gles2/command_buffer_impl.cc |
diff --git a/components/mus/gles2/command_buffer_impl.cc b/components/mus/gles2/command_buffer_impl.cc |
index ee3384b2f56040c304b1e06d48e91ebdf5643029..70de3c2aab6f3827107578d56219fa974fbfa43a 100644 |
--- a/components/mus/gles2/command_buffer_impl.cc |
+++ b/components/mus/gles2/command_buffer_impl.cc |
@@ -172,7 +172,9 @@ void CommandBufferImpl::BindToRequest( |
mojo::InterfaceRequest<mus::mojom::CommandBuffer> request) { |
binding_.reset( |
new mojo::Binding<mus::mojom::CommandBuffer>(this, std::move(request))); |
- binding_->set_connection_error_handler([this]() { OnConnectionError(); }); |
+ binding_->set_connection_error_handler( |
+ base::Bind(&CommandBufferImpl::OnConnectionError, |
+ base::Unretained(this))); |
} |
void CommandBufferImpl::InitializeOnGpuThread( |