Chromium Code Reviews| 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) { |
| +#ifndef NDEBUG |
|
viettrungluu
2012/07/31 16:44:00
Why not #ifdef NDEBUG (reversing the contents of c
jschuh
2012/07/31 16:55:17
Done.
|
| EnterUDP enter(udp_socket, callback, true); |
| +#else |
| + EnterUDP enter(udp_socket, callback, false); |
| +#endif |
| if (enter.failed()) |
| return enter.retval(); |
| return enter.SetResult(enter.object()->RecvFrom(buffer, num_bytes, |