Index: ipc/ipc_channel_posix.cc |
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc |
index 85f4475c7ab761d8d747a134833e5857c9f41081..1f73e781f42f3dec441595192856307e16fa9202 100644 |
--- a/ipc/ipc_channel_posix.cc |
+++ b/ipc/ipc_channel_posix.cc |
@@ -697,7 +697,7 @@ bool ChannelPosix::ProcessMessageForDelivery(Message* message) { |
if (message->HasBrokerableAttachments()) { |
DCHECK(GetAttachmentBroker()); |
DCHECK(peer_pid_ != base::kNullProcessId); |
- for (BrokerableAttachment* attachment : |
+ for (const scoped_refptr<IPC::BrokerableAttachment>& attachment : |
message->attachment_set()->GetBrokerableAttachments()) { |
if (!GetAttachmentBroker()->SendAttachmentToProcess(attachment, |
peer_pid_)) { |