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

Unified Diff: ppapi/thunk/ppb_udp_socket_private_thunk.cc

Issue 10823066: Don't log UDP receive failures in release (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_udp_socket_private_thunk.cc
===================================================================
--- ppapi/thunk/ppb_udp_socket_private_thunk.cc (revision 148779)
+++ ppapi/thunk/ppb_udp_socket_private_thunk.cc (working copy)
@@ -51,7 +51,11 @@
char* buffer,
int32_t num_bytes,
PP_CompletionCallback callback) {
+#ifdef NDEBUG
+ EnterUDP enter(udp_socket, callback, false);
+#else
EnterUDP enter(udp_socket, callback, true);
+#endif
if (enter.failed())
return enter.retval();
return enter.SetResult(enter.object()->RecvFrom(buffer, num_bytes,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698