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

Unified Diff: ipc/ipc_message_macros.h

Issue 283313002: Ensure that any IPC sent from a child process that couldn't be deserialized causes that p… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 7 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: ipc/ipc_message_macros.h
===================================================================
--- ipc/ipc_message_macros.h (revision 270662)
+++ ipc/ipc_message_macros.h (working copy)
@@ -933,6 +933,8 @@
TRACK_RUN_IN_IPC_HANDLER(member_func); \
msg_is_ok__ = msg_class::Dispatch(&ipc_message__, obj, this, \
param__, &member_func); \
+ if (!msg_is_ok__) \
+ const_cast<IPC::Message&>(ipc_message__).set_dispatch_error(); \
Tom Sepez 2014/05/15 19:57:42 What if we wanted to avoid the const cast by makin
jam 2014/05/15 21:19:34 actually, i can simplify this more now by making d
} \
break;
@@ -944,6 +946,8 @@
TRACK_RUN_IN_IPC_HANDLER(member_func); \
msg_is_ok__ = msg_class::DispatchDelayReply(&ipc_message__, obj, \
param__, &member_func); \
+ if (!msg_is_ok__) \
+ const_cast<IPC::Message&>(ipc_message__).set_dispatch_error(); \
} \
break;

Powered by Google App Engine
This is Rietveld 408576698