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

Unified Diff: mojo/edk/system/message_pipe_dispatcher.cc

Issue 2052553002: Add Core::ReplaceHandleWithReducedRights(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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 | « mojo/edk/system/handle_transport.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/message_pipe_dispatcher.cc
diff --git a/mojo/edk/system/message_pipe_dispatcher.cc b/mojo/edk/system/message_pipe_dispatcher.cc
index ff24b1aac4bb484df5bbe4a703ce04a6d9be4226..b40557909b305fb105add6e171cf95ca79d0c4a7 100644
--- a/mojo/edk/system/message_pipe_dispatcher.cc
+++ b/mojo/edk/system/message_pipe_dispatcher.cc
@@ -144,6 +144,8 @@ MessagePipeDispatcher::CreateEquivalentDispatcherAndCloseImplNoLock(
mutex().AssertHeld();
// "We" are being sent over our peer.
+ // If |message_pipe| is null, the |if| condition below should be false.
+ DCHECK(message_pipe_.get());
if (message_pipe == message_pipe_.get()) {
// A message pipe dispatcher can't be sent over itself (this should be
// disallowed by |Core|). Note that |port| is the destination port.
« no previous file with comments | « mojo/edk/system/handle_transport.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698