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

Unified Diff: ipc/mojo/ipc_channel_mojo.cc

Issue 1903663004: IPC: Fix attachment brokering race condition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from tsepez. 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/mojo/ipc_channel_mojo.cc
diff --git a/ipc/mojo/ipc_channel_mojo.cc b/ipc/mojo/ipc_channel_mojo.cc
index 57ec8ec91abd67cefe479963e7d0eb2f968e7cfd..e7d0a9a33cf55fb303691c718c5baf733aaff09f 100644
--- a/ipc/mojo/ipc_channel_mojo.cc
+++ b/ipc/mojo/ipc_channel_mojo.cc
@@ -237,6 +237,7 @@ ChannelMojo::~ChannelMojo() {
}
bool ChannelMojo::Connect() {
+ WillConnect();
base::AutoLock lock(lock_);
DCHECK(!task_runner_);
task_runner_ = base::ThreadTaskRunnerHandle::Get();

Powered by Google App Engine
This is Rietveld 408576698