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

Unified Diff: mojo/services/network/http_server_impl.cc

Issue 1227373002: Roll mojo SDK to 734c6e1652ff2f3b696e441722838f453f4f9b42 (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Follow review Created 5 years, 5 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
« no previous file with comments | « mojo/services/network/http_server_impl.h ('k') | mojo/services/network/network_service_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « mojo/services/network/http_server_impl.h ('k') | mojo/services/network/network_service_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698