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

Unified Diff: ipc/ipc_channel_common.cc

Issue 1903663004: IPC: Fix attachment brokering race condition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: runtime error Created 4 years, 8 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
Index: ipc/ipc_channel_common.cc
diff --git a/ipc/ipc_channel_common.cc b/ipc/ipc_channel_common.cc
index c12a360b64c6ac4d7657f9772fc9a4d7662e66f6..ba40b2a0148082036a51ad1f2bbc4afcabef5db6 100644
--- a/ipc/ipc_channel_common.cc
+++ b/ipc/ipc_channel_common.cc
@@ -52,5 +52,13 @@ bool Channel::IsSendThreadSafe() const {
return false;
}
+void Channel::OnSetAttachmentBrokerEndpoint() {
+ DCHECK(!did_connect_);
+}
+
+void Channel::OnConnect() {
+ did_connect_ = true;
+}
+
} // namespace IPC
« ipc/ipc_channel.h ('K') | « ipc/ipc_channel.h ('k') | ipc/ipc_channel_nacl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698