Index: ipc/attachment_broker_unprivileged_mac.cc |
diff --git a/ipc/attachment_broker_unprivileged_mac.cc b/ipc/attachment_broker_unprivileged_mac.cc |
index 65d26f245b01d8fb19ea655d3117992ea4693765..144028d0d8e4c7c1749e6faa0155e390e08622ab 100644 |
--- a/ipc/attachment_broker_unprivileged_mac.cc |
+++ b/ipc/attachment_broker_unprivileged_mac.cc |
@@ -90,7 +90,8 @@ void AttachmentBrokerUnprivilegedMac::OnMachPortHasBeenDuplicated( |
} |
base::mac::ScopedMachReceiveRight message_port(wire_format.mach_port); |
- base::mac::ScopedMachSendRight memory_object(ReceiveMachPort(message_port)); |
+ base::mac::ScopedMachSendRight memory_object( |
+ ReceiveMachPort(message_port.get())); |
IPC::internal::MachPortAttachmentMac::WireFormat translated_wire_format( |
memory_object.release(), wire_format.destination_process, |
wire_format.attachment_id); |