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

Unified Diff: ipc/ipc_channel_win.cc

Issue 1979533003: Fix an attachment broker race condition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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_win.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_win.cc
diff --git a/ipc/ipc_channel_win.cc b/ipc/ipc_channel_win.cc
index 8bdb7ae33b370cd644431547a4df0de22cb3fc88..4321b04beef1c6cf788701ebd52d95d69f9aea0e 100644
--- a/ipc/ipc_channel_win.cc
+++ b/ipc/ipc_channel_win.cc
@@ -263,6 +263,11 @@ void ChannelWin::HandleInternalMessage(const Message& msg) {
listener()->OnChannelConnected(claimed_pid);
FlushPrelimQueue();
+
+ if (IsAttachmentBrokerEndpoint() &&
+ AttachmentBroker::GetGlobal()->IsPrivilegedBroker()) {
+ AttachmentBroker::GetGlobal()->ReceivedPeerPid(claimed_pid);
+ }
}
base::ProcessId ChannelWin::GetSenderPID() {
« no previous file with comments | « ipc/attachment_broker_privileged_win.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698