Index: ipc/attachment_broker_privileged_win.cc |
diff --git a/ipc/attachment_broker_privileged_win.cc b/ipc/attachment_broker_privileged_win.cc |
index 3ce3ec5d6e7cfdefc909ea18382c0b6df5c2ebb9..06470128df97e4a0725a65b3854bd38a33ee3c58 100644 |
--- a/ipc/attachment_broker_privileged_win.cc |
+++ b/ipc/attachment_broker_privileged_win.cc |
@@ -86,8 +86,9 @@ void AttachmentBrokerPrivilegedWin::RouteDuplicatedHandle( |
// Another process is the destination. |
base::ProcessId dest = wire_format.destination_process; |
base::AutoLock auto_lock(*get_lock()); |
- Sender* sender = GetSenderWithProcessId(dest); |
- if (!sender) { |
+ AttachmentBrokerPrivileged::EndpointRunnerPair pair = |
+ GetSenderWithProcessId(dest); |
+ if (!pair.first) { |
// Assuming that this message was not sent from a malicious process, the |
// channel endpoint that would have received this message will block |
// forever. |
@@ -98,7 +99,8 @@ void AttachmentBrokerPrivilegedWin::RouteDuplicatedHandle( |
} |
LogError(DESTINATION_FOUND); |
- sender->Send(new AttachmentBrokerMsg_WinHandleHasBeenDuplicated(wire_format)); |
+ SendMessageToEndpoint( |
+ pair, new AttachmentBrokerMsg_WinHandleHasBeenDuplicated(wire_format)); |
} |
AttachmentBrokerPrivilegedWin::HandleWireFormat |