summaryrefslogtreecommitdiffstats
path: root/ipc/attachment_broker_privileged_win_unittest.cc
diff options
context:
space:
mode:
authorerikchen <erikchen@chromium.org>2015-10-07 13:51:55 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-07 20:52:59 +0000
commit3722a32d89d1fa27b7510d82d14e94f0ea68aa9a (patch)
tree910333e192c721a279819064bd9349a788f08204 /ipc/attachment_broker_privileged_win_unittest.cc
parent4b0739defcac390878c6a692a387be2b3fb65e29 (diff)
downloadchromium_src-3722a32d89d1fa27b7510d82d14e94f0ea68aa9a.zip
chromium_src-3722a32d89d1fa27b7510d82d14e94f0ea68aa9a.tar.gz
chromium_src-3722a32d89d1fa27b7510d82d14e94f0ea68aa9a.tar.bz2
ipc: Update MachPortMac ownership semantics.
This CL consists of a small refactor, a small change in ownership semantics, and a lot of documentation. The refactor removes a |const| qualifier from brokerable message attachments that are passed to the attachment broker. This allows for an improvement to ownership semantics for MachPortMac. BUG=535711 Review URL: https://codereview.chromium.org/1385143002 Cr-Commit-Position: refs/heads/master@{#352938}
Diffstat (limited to 'ipc/attachment_broker_privileged_win_unittest.cc')
-rw-r--r--ipc/attachment_broker_privileged_win_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/attachment_broker_privileged_win_unittest.cc b/ipc/attachment_broker_privileged_win_unittest.cc
index 25cadcb..02ef930 100644
--- a/ipc/attachment_broker_privileged_win_unittest.cc
+++ b/ipc/attachment_broker_privileged_win_unittest.cc
@@ -277,7 +277,7 @@ class MockBroker : public IPC::AttachmentBrokerUnprivilegedWin {
public:
MockBroker() {}
~MockBroker() override {}
- bool SendAttachmentToProcess(const IPC::BrokerableAttachment* attachment,
+ bool SendAttachmentToProcess(IPC::BrokerableAttachment* attachment,
base::ProcessId destination_process) override {
return IPC::AttachmentBrokerUnprivilegedWin::SendAttachmentToProcess(
attachment, base::Process::Current().Pid());