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

Unified Diff: mojo/system/message_pipe.cc

Issue 600523002: Mojo: Remove MessagePipe::Attach(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_paused_message_queue-x-del_pmpe_attach
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 | « mojo/system/message_pipe.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/message_pipe.cc
diff --git a/mojo/system/message_pipe.cc b/mojo/system/message_pipe.cc
index f86a13449d9519d0e88cfd65ecd20c91d5a56102..c7acbe692118e43d23220522eb741bb12a62b783 100644
--- a/mojo/system/message_pipe.cc
+++ b/mojo/system/message_pipe.cc
@@ -187,18 +187,6 @@ MojoResult MessagePipe::EnqueueMessage(unsigned port,
return EnqueueMessageInternal(port, message.Pass(), nullptr);
}
-bool MessagePipe::Attach(unsigned port, ChannelEndpoint* channel_endpoint) {
- DCHECK(port == 0 || port == 1);
- DCHECK(channel_endpoint);
-
- base::AutoLock locker(lock_);
- if (!endpoints_[port])
- return false;
-
- DCHECK_EQ(endpoints_[port]->GetType(), MessagePipeEndpoint::kTypeProxy);
- return true;
-}
-
void MessagePipe::Run(unsigned port) {
DCHECK(port == 0 || port == 1);
« no previous file with comments | « mojo/system/message_pipe.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698