Index: remoting/host/chromoting_host.cc |
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc |
index 8eb6b336d8f408979e09369ef9073b67a0438185..7d738d86a76e9f156f4c161662023ecaa13178a8 100644 |
--- a/remoting/host/chromoting_host.cc |
+++ b/remoting/host/chromoting_host.cc |
@@ -465,7 +465,7 @@ void ChromotingHost::AddAuthenticatedClient( |
protocol::LocalLoginStatus* status = new protocol::LocalLoginStatus(); |
status->set_success(true); |
connection->client_stub()->BeginSessionResponse( |
- status, new DeleteTask<protocol::LocalLoginStatus>(status)); |
+ status, base::Bind(&DeletePointer<protocol::LocalLoginStatus>, status)); |
// Disconnect all other clients. |
// Iterate over a copy of the list of clients, to avoid mutating the list |
@@ -526,7 +526,7 @@ void ChromotingHost::LocalLoginFailed( |
protocol::LocalLoginStatus* status = new protocol::LocalLoginStatus(); |
status->set_success(false); |
connection->client_stub()->BeginSessionResponse( |
- status, new DeleteTask<protocol::LocalLoginStatus>(status)); |
+ status, base::Bind(&DeletePointer<protocol::LocalLoginStatus>, status)); |
} |
void ChromotingHost::ProcessPreAuthentication( |