Index: ipc/attachment_broker_unprivileged_mac.cc |
diff --git a/ipc/attachment_broker_unprivileged_mac.cc b/ipc/attachment_broker_unprivileged_mac.cc |
index b5a7e8457bf2ba675c6f21ab2edd8cee36c00069..2bba01d9240c358fb402b75d1f3c271bdcfa2c29 100644 |
--- a/ipc/attachment_broker_unprivileged_mac.cc |
+++ b/ipc/attachment_broker_unprivileged_mac.cc |
@@ -50,12 +50,12 @@ AttachmentBrokerUnprivilegedMac::AttachmentBrokerUnprivilegedMac() {} |
AttachmentBrokerUnprivilegedMac::~AttachmentBrokerUnprivilegedMac() {} |
bool AttachmentBrokerUnprivilegedMac::SendAttachmentToProcess( |
- BrokerableAttachment* attachment, |
+ const scoped_refptr<IPC::BrokerableAttachment>& attachment, |
base::ProcessId destination_process) { |
switch (attachment->GetBrokerableType()) { |
case BrokerableAttachment::MACH_PORT: { |
internal::MachPortAttachmentMac* mach_port_attachment = |
- static_cast<internal::MachPortAttachmentMac*>(attachment); |
+ static_cast<internal::MachPortAttachmentMac*>(attachment.get()); |
internal::MachPortAttachmentMac::WireFormat format = |
mach_port_attachment->GetWireFormat(destination_process); |
bool success = |