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

Unified Diff: util/mach/child_port_server.cc

Issue 755313004: Pass Mach message trailers to server handler functions (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Address review feedback Created 6 years 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 | « util/mach/child_port_server.h ('k') | util/mach/child_port_server_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mach/child_port_server.cc
diff --git a/util/mach/child_port_server.cc b/util/mach/child_port_server.cc
index b263b9049f3acfefcad71a081551d3ea05ab330f..2118d037c4990b6c79b39371ed2b4a8c24372375 100644
--- a/util/mach/child_port_server.cc
+++ b/util/mach/child_port_server.cc
@@ -72,6 +72,9 @@ bool ChildPortServer::MachMessageServerFunction(
bool* destroy_complex_request) {
PrepareMIGReplyFromRequest(in_header, out_header);
+ const mach_msg_trailer_t* in_trailer =
+ MachMessageTrailerFromHeader(in_header);
+
switch (in_header->msgh_id) {
case kMachMessageIDChildPortCheckIn: {
// child_port_check_in(), handle_child_port_check_in().
@@ -90,6 +93,7 @@ bool ChildPortServer::MachMessageServerFunction(
in_request->token,
in_request->port.name,
in_request->port.disposition,
+ in_trailer,
destroy_complex_request);
return true;
}
« no previous file with comments | « util/mach/child_port_server.h ('k') | util/mach/child_port_server_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698