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

Unified Diff: content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.cc

Issue 217573002: make SetReceiveBufferSize and SetSendBufferSize return net error codes (instead of bools) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: process error code in quic_stream_factory Created 6 years, 9 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
Index: content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.cc
diff --git a/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.cc b/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.cc
index 82805cd8f92d5140767a089f126fc26918f3f3a7..9e373d6652246c05e7bcc5b7c8202d3edf8b062e 100644
--- a/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.cc
+++ b/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.cc
@@ -146,13 +146,13 @@ int32_t PepperUDPSocketMessageFilter::OnMsgSetOption(
ppapi::proxy::UDPSocketResourceBase::kMaxSendBufferSize) {
return PP_ERROR_BADARGUMENT;
}
- result = socket_->SetSendBufferSize(integer_value);
+ result = socket_->SetSendBufferSize(integer_value) == net::OK;
} else {
if (integer_value >
ppapi::proxy::UDPSocketResourceBase::kMaxReceiveBufferSize) {
return PP_ERROR_BADARGUMENT;
}
- result = socket_->SetReceiveBufferSize(integer_value);
+ result = socket_->SetReceiveBufferSize(integer_value) == net::OK;
}
return result ? PP_OK : PP_ERROR_FAILED;
wtc 2014/03/29 13:30:12 Nit: see my suggestion in the previous file.
jar (doing other things) 2014/04/01 23:50:39 Done as in other file.
}

Powered by Google App Engine
This is Rietveld 408576698