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

Unified Diff: ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc

Issue 10909244: PPAPI: Get TrackedCallback ready for running on non-main threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged. Created 8 years, 1 month 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 | « ppapi/proxy/ppb_talk_private_proxy.cc ('k') | ppapi/proxy/ppb_url_loader_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc
diff --git a/ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc b/ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc
index 5e6557b61e8e88314361fa431585108ac5bc11f6..a98d4a703f99456e5a7d47e8bccdef056394322f 100644
--- a/ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc
+++ b/ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc
@@ -78,8 +78,7 @@ void TCPServerSocket::OnAcceptCompleted(
}
tcp_socket_buffer_ = NULL;
- TrackedCallback::ClearAndRun(&accept_callback_,
- succeeded ? PP_OK : PP_ERROR_FAILED);
+ accept_callback_->Run(succeeded ? PP_OK : PP_ERROR_FAILED);
}
void TCPServerSocket::SendListen(const PP_NetAddress_Private& addr,
« no previous file with comments | « ppapi/proxy/ppb_talk_private_proxy.cc ('k') | ppapi/proxy/ppb_url_loader_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698