Index: content/browser/presentation/presentation_service_impl.cc |
diff --git a/content/browser/presentation/presentation_service_impl.cc b/content/browser/presentation/presentation_service_impl.cc |
index 97b5ddda7815db89404b56f5ec5c58ee82dbae5a..80e2aeacd74914cb97eee814b26873ef104ee8e4 100644 |
--- a/content/browser/presentation/presentation_service_impl.cc |
+++ b/content/browser/presentation/presentation_service_impl.cc |
@@ -169,12 +169,10 @@ void PresentationServiceImpl::Bind( |
mojo::InterfaceRequest<presentation::PresentationService> request) { |
binding_.reset(new mojo::Binding<presentation::PresentationService>( |
this, request.Pass())); |
- binding_->set_error_handler(this); |
-} |
- |
-void PresentationServiceImpl::OnConnectionError() { |
- DVLOG(1) << "OnConnectionError"; |
- delete this; |
+ binding_->set_connection_error_handler([this]() { |
+ DVLOG(1) << "Connection error"; |
+ delete this; |
+ }); |
} |
void PresentationServiceImpl::SetClient( |