Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(711)

Unified Diff: ipc/ipc_channel_posix.cc

Issue 1978353003: mac: Fix an attachment broker race condition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp48_windows_ab
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/attachment_broker_privileged_mac.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_posix.cc
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
index fffbd2b3e2d9f06703722756c0cfc5cb8cc35909..df7a7589465d93329a5083b60635e48be9592aa3 100644
--- a/ipc/ipc_channel_posix.cc
+++ b/ipc/ipc_channel_posix.cc
@@ -1017,6 +1017,12 @@ void ChannelPosix::HandleInternalMessage(const Message& msg) {
if (!FlushPrelimQueue())
ClosePipeOnError();
+
+ if (IsAttachmentBrokerEndpoint() &&
+ AttachmentBroker::GetGlobal() &&
+ AttachmentBroker::GetGlobal()->IsPrivilegedBroker()) {
+ AttachmentBroker::GetGlobal()->ReceivedPeerPid(pid);
+ }
break;
#if defined(OS_MACOSX)
« no previous file with comments | « ipc/attachment_broker_privileged_mac.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698