| Index: mojo/services/network/http_server_impl.cc
|
| diff --git a/mojo/services/network/http_server_impl.cc b/mojo/services/network/http_server_impl.cc
|
| index 599b3df089f26cedc4f4b8eb35c21f35435207d3..c7ebdddd2e8faa6cb4df378af7f1188283747982 100644
|
| --- a/mojo/services/network/http_server_impl.cc
|
| +++ b/mojo/services/network/http_server_impl.cc
|
| @@ -40,7 +40,7 @@ void HttpServerImpl::Create(
|
| HttpServerImpl::HttpServerImpl(HttpServerDelegatePtr delegate)
|
| : delegate_(delegate.Pass()) {
|
| DCHECK(delegate_);
|
| - delegate_.set_error_handler(this);
|
| + delegate_.set_connection_error_handler([this]() { delete this; });
|
| }
|
|
|
| HttpServerImpl::~HttpServerImpl() {}
|
| @@ -112,8 +112,4 @@ void HttpServerImpl::OnClose(int connection_id) {
|
| connections_.erase(connection_id);
|
| }
|
|
|
| -void HttpServerImpl::OnConnectionError() {
|
| - delete this;
|
| -}
|
| -
|
| } // namespace mojo
|
|
|