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

Unified Diff: mojo/system/channel.cc

Issue 612183002: Mojo: Remove MessagePipe::OnRemove(); instead just use MessagePipe::Close(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 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
« no previous file with comments | « no previous file | mojo/system/message_pipe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/channel.cc
diff --git a/mojo/system/channel.cc b/mojo/system/channel.cc
index d9a8ce4e0df77647f17fb6a35535f6de30cd9808..0c4033fcac2ba70071e2aeee32bcb32fe2695ab0 100644
--- a/mojo/system/channel.cc
+++ b/mojo/system/channel.cc
@@ -74,7 +74,7 @@ void Channel::Shutdown() {
it != to_destroy.end();
++it) {
if (it->second->state_ == ChannelEndpoint::STATE_NORMAL) {
- it->second->message_pipe_->OnRemove(it->second->port_);
+ it->second->message_pipe_->Close(it->second->port_);
num_live++;
} else {
DCHECK(!it->second->message_pipe_.get());
@@ -493,7 +493,7 @@ bool Channel::RemoveMessagePipeEndpoint(
static_cast<unsigned>(remote_id)));
}
- message_pipe->OnRemove(port);
+ message_pipe->Close(port);
return true;
}
« no previous file with comments | « no previous file | mojo/system/message_pipe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698