Index: ppapi/shared_impl/private/ppb_tcp_server_socket_shared.cc |
diff --git a/ppapi/shared_impl/private/ppb_tcp_server_socket_shared.cc b/ppapi/shared_impl/private/ppb_tcp_server_socket_shared.cc |
index 284db1ec4134f4c0ff73be8919e7531f4ce92a07..f47ba7473af9cd1fd945d429b2e0eed8ace69c4d 100644 |
--- a/ppapi/shared_impl/private/ppb_tcp_server_socket_shared.cc |
+++ b/ppapi/shared_impl/private/ppb_tcp_server_socket_shared.cc |
@@ -14,7 +14,6 @@ namespace ppapi { |
PPB_TCPServerSocket_Shared::PPB_TCPServerSocket_Shared(PP_Instance instance) |
: Resource(OBJECT_IS_IMPL, instance), |
real_socket_id_(0), |
- temp_socket_id_(GenerateTempSocketID()), |
state_(BEFORE_LISTENING), |
tcp_socket_buffer_(NULL) { |
} |
@@ -23,7 +22,6 @@ PPB_TCPServerSocket_Shared::PPB_TCPServerSocket_Shared( |
const HostResource& resource) |
: Resource(OBJECT_IS_PROXY, resource), |
real_socket_id_(0), |
- temp_socket_id_(GenerateTempSocketID()), |
state_(BEFORE_LISTENING), |
tcp_socket_buffer_(NULL) { |
} |
@@ -50,7 +48,7 @@ int32_t PPB_TCPServerSocket_Shared::Listen(const PP_NetAddress_Private* addr, |
listen_callback_ = new TrackedCallback(this, callback); |
// Send the request, the browser will call us back via ListenACK |
- SendListen(temp_socket_id_, *addr, backlog); |
+ SendListen(*addr, backlog); |
return PP_OK_COMPLETIONPENDING; |
} |
@@ -105,9 +103,4 @@ void PPB_TCPServerSocket_Shared::OnListenCompleted(uint32 real_socket_id, |
TrackedCallback::ClearAndRun(&listen_callback_, status); |
} |
-uint32 PPB_TCPServerSocket_Shared::GenerateTempSocketID() { |
- static uint32 socket_id = 0; |
- return socket_id++; |
-} |
- |
} // namespace ppapi |