Index: ipc/attachment_broker_privileged_mac.cc |
diff --git a/ipc/attachment_broker_privileged_mac.cc b/ipc/attachment_broker_privileged_mac.cc |
index 29e78334cb47ce78058973cc1197ee786b04f18f..0eb65a0241f6d7a8548f57a02592afe299cc8671 100644 |
--- a/ipc/attachment_broker_privileged_mac.cc |
+++ b/ipc/attachment_broker_privileged_mac.cc |
@@ -231,7 +231,8 @@ mach_port_name_t AttachmentBrokerPrivilegedMac::CreateIntermediateMachPort( |
send_right_type); |
// This call takes ownership of |send_once_right|. |
- kr = SendMachPort(send_once_right, port_to_insert, MACH_MSG_TYPE_COPY_SEND); |
+ kr = SendMachPort( |
+ send_once_right, port_to_insert.get(), MACH_MSG_TYPE_COPY_SEND); |
if (kr != KERN_SUCCESS) { |
// TODO(erikchen): UMA metric. |
mach_port_deallocate(task_port, endpoint); |