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

Unified Diff: ipc/mojo/async_handle_waiter.cc

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more cleanup Created 5 years, 3 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/async_handle_waiter.cc
diff --git a/ipc/mojo/async_handle_waiter.cc b/ipc/mojo/async_handle_waiter.cc
index b9e68d7c4539886059b8428617eb43121eb19b4d..652764edc6c763e6d17fdd5746955edc513394e0 100644
--- a/ipc/mojo/async_handle_waiter.cc
+++ b/ipc/mojo/async_handle_waiter.cc
@@ -86,6 +86,11 @@ class AsyncHandleWaiter::Context
}
void DidProcessIOEvent() override {
+ // This object could have been constructed in another's class's
+ // DidProcessIOEvent.
+ if (io_loop_level_== 0)
+ return;
+
DCHECK_GE(io_loop_level_, 1);
// Leaving a nested loop.
« no previous file with comments | « ipc/mojo/DEPS ('k') | ipc/mojo/ipc_channel_mojo.cc » ('j') | mojo/edk/system/core.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698