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

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

Issue 2135113002: [mojo-edk] Close pending merges if the parent channel dies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert stuff for merge. Created 4 years, 5 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/node_channel.h ('k') | mojo/edk/system/node_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/node_channel.cc
diff --git a/mojo/edk/system/node_channel.cc b/mojo/edk/system/node_channel.cc
index eb83f2e22e16514fb37991b91c0837cfc215bc42..ce094c16711db665c9645d6cafcda2426f4842a6 100644
--- a/mojo/edk/system/node_channel.cc
+++ b/mojo/edk/system/node_channel.cc
@@ -503,7 +503,7 @@ void NodeChannel::OnChannelMessage(const void* payload,
if (payload_size <= sizeof(Header)) {
- delegate_->OnChannelError(remote_node_name_);
+ delegate_->OnChannelError(remote_node_name_, this);
return;
}
@@ -733,7 +733,7 @@ void NodeChannel::OnChannelMessage(const void* payload,
}
DLOG(ERROR) << "Received invalid message. Closing channel.";
- delegate_->OnChannelError(remote_node_name_);
+ delegate_->OnChannelError(remote_node_name_, this);
}
void NodeChannel::OnChannelError() {
@@ -746,7 +746,7 @@ void NodeChannel::OnChannelError() {
// to the name name after that destruction. So may a copy of
// |remote_node_name_| so it can be used if |this| becomes destroyed.
ports::NodeName node_name = remote_node_name_;
- delegate_->OnChannelError(node_name);
+ delegate_->OnChannelError(node_name, this);
}
#if defined(OS_MACOSX) && !defined(OS_IOS)
« no previous file with comments | « mojo/edk/system/node_channel.h ('k') | mojo/edk/system/node_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698