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

Unified Diff: util/mach/child_port_server.cc

Issue 799463003: MachMessageServer::Interface implementations: minor cleanups (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: 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 500cd1e57a712a859e2cee3988cd2a39940bd3a4..4fc723ac7ca345575cb30f02e58108a777cac6e3 100644
--- a/util/mach/child_port_server.cc
+++ b/util/mach/child_port_server.cc
@@ -97,16 +97,18 @@ bool ChildPortServer::MachMessageServerFunction(
destroy_complex_request);
return true;
}
- }
- SetMIGReplyError(out_header, MIG_BAD_ID);
- return false;
+ default: {
+ SetMIGReplyError(out_header, MIG_BAD_ID);
+ return false;
+ }
+ }
}
std::set<mach_msg_id_t> ChildPortServer::MachMessageServerRequestIDs() {
const mach_msg_id_t request_ids[] = {kMachMessageIDChildPortCheckIn};
- return std::set<mach_msg_id_t>(
- &request_ids[0], &request_ids[arraysize(request_ids)]);
+ return std::set<mach_msg_id_t>(&request_ids[0],
+ &request_ids[arraysize(request_ids)]);
}
mach_msg_size_t ChildPortServer::MachMessageServerRequestSize() {
« 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