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

Unified Diff: trunk/src/jingle/glue/channel_socket_adapter.cc

Issue 227083002: Revert 261966 "make SetReceiveBufferSize and SetSendBufferSize r..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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 | « trunk/src/jingle/glue/channel_socket_adapter.h ('k') | trunk/src/jingle/glue/fake_ssl_client_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/jingle/glue/channel_socket_adapter.cc
===================================================================
--- trunk/src/jingle/glue/channel_socket_adapter.cc (revision 262001)
+++ trunk/src/jingle/glue/channel_socket_adapter.cc (working copy)
@@ -99,16 +99,14 @@
return result;
}
-int TransportChannelSocketAdapter::SetReceiveBufferSize(int32 size) {
+bool TransportChannelSocketAdapter::SetReceiveBufferSize(int32 size) {
DCHECK_EQ(base::MessageLoop::current(), message_loop_);
- return (channel_->SetOption(talk_base::Socket::OPT_RCVBUF, size) == 0) ?
- net::OK : net::ERR_SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR;
+ return channel_->SetOption(talk_base::Socket::OPT_RCVBUF, size) == 0;
}
-int TransportChannelSocketAdapter::SetSendBufferSize(int32 size) {
+bool TransportChannelSocketAdapter::SetSendBufferSize(int32 size) {
DCHECK_EQ(base::MessageLoop::current(), message_loop_);
- return (channel_->SetOption(talk_base::Socket::OPT_SNDBUF, size) == 0) ?
- net::OK : net::ERR_SOCKET_SET_SEND_BUFFER_SIZE_ERROR;
+ return channel_->SetOption(talk_base::Socket::OPT_SNDBUF, size) == 0;
}
void TransportChannelSocketAdapter::Close(int error_code) {
« no previous file with comments | « trunk/src/jingle/glue/channel_socket_adapter.h ('k') | trunk/src/jingle/glue/fake_ssl_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698