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

Unified Diff: remoting/host/chromoting_host.cc

Issue 8116021: Switch remoting/protocol to new callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 2 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 | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/host/chromoting_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/host/chromoting_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698