Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: components/mus/gles2/command_buffer_impl.cc

Issue 2062333002: mojo::Callback -> base::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(
« no previous file with comments | « components/leveldb/remote_iterator_unittest.cc ('k') | components/mus/public/cpp/lib/command_buffer_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698