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

Issue 564533002: MachMessageServer: Make request messages const (Closed)

Created:
6 years, 3 months ago by Mark Mentovai
Modified:
6 years, 3 months ago
Reviewers:
Robert Sesek
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Project:
crashpad
Visibility:
Public.

Description

MachMessageServer: Make request messages const. There’s no reason that “in” or “request” messages should be non-const. This makes them const, bridges the const gap left by the MIG-generated “check” functions with wrappers, and uses non-const fields in “out” messages instead of const fields in “in” messages for in-out parameters. TEST=util_test ExcServerVariants.*:MachMessageServer.* R=rsesek@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/fbf12950fe7f2be016eed387c6be660901e5e546

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -39 lines) Patch
M util/mach/exc_server_variants.h View 3 chunks +3 lines, -3 lines 0 comments Download
M util/mach/exc_server_variants.cc View 19 chunks +83 lines, -32 lines 2 comments Download
M util/mach/mach_message_server.h View 2 chunks +4 lines, -2 lines 0 comments Download
M util/mach/mach_message_server_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Mark Mentovai
6 years, 3 months ago (2014-09-10 21:54:59 UTC) #2
Robert Sesek
https://codereview.chromium.org/564533002/diff/1/util/mach/exc_server_variants.cc File util/mach/exc_server_variants.cc (right): https://codereview.chromium.org/564533002/diff/1/util/mach/exc_server_variants.cc#newcode146 util/mach/exc_server_variants.cc:146: // The MIG-generated __MIG_check__Request__*() functions are not declared as ...
6 years, 3 months ago (2014-09-10 21:56:45 UTC) #3
Mark Mentovai
https://codereview.chromium.org/564533002/diff/1/util/mach/exc_server_variants.cc File util/mach/exc_server_variants.cc (right): https://codereview.chromium.org/564533002/diff/1/util/mach/exc_server_variants.cc#newcode146 util/mach/exc_server_variants.cc:146: // The MIG-generated __MIG_check__Request__*() functions are not declared as ...
6 years, 3 months ago (2014-09-10 22:35:01 UTC) #4
Robert Sesek
OK LGTM
6 years, 3 months ago (2014-09-10 22:42:30 UTC) #5
Mark Mentovai
6 years, 3 months ago (2014-09-10 22:57:21 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as fbf1295 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698