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

Unified Diff: mojo/embedder/embedder.cc

Issue 240133005: Mojo: Make some attempts towards fixing remote message pipe closure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | mojo/system/channel.h » ('j') | mojo/system/channel.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | mojo/system/channel.h » ('j') | mojo/system/channel.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698