Index: mojo/embedder/embedder.cc |
diff --git a/mojo/embedder/embedder.cc b/mojo/embedder/embedder.cc |
index 7698160336dc9d710a19543e9310176c70e02a5c..e8c6e8e53b3a84333c0fdcf41e54aa648fb847b9 100644 |
--- a/mojo/embedder/embedder.cc |
+++ b/mojo/embedder/embedder.cc |
@@ -44,6 +44,8 @@ static void CreateChannelOnIOThread( |
// Attach the message pipe endpoint. |
system::MessageInTransit::EndpointId endpoint_id = |
channel_info->channel->AttachMessagePipeEndpoint(message_pipe, 1); |
+ // We shouldn't get |kInvalidEndpointId| here -- since |CreateChannel()| is |
+ // responsible for the local endpoint, and won't close it. |
DCHECK_EQ(endpoint_id, system::Channel::kBootstrapEndpointId); |
success = channel_info->channel->RunMessagePipeEndpoint( |
system::Channel::kBootstrapEndpointId, |