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

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

Issue 1160203002: Make Dispatcher::Type an enum class. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
Index: mojo/edk/system/message_pipe_dispatcher.cc
diff --git a/mojo/edk/system/message_pipe_dispatcher.cc b/mojo/edk/system/message_pipe_dispatcher.cc
index a6733dbe324dfb1f4c118cfa5648390834db2c1b..95faede941721e0a6894f1d2cd01b1186afde178 100644
--- a/mojo/edk/system/message_pipe_dispatcher.cc
+++ b/mojo/edk/system/message_pipe_dispatcher.cc
@@ -68,7 +68,7 @@ void MessagePipeDispatcher::Init(scoped_refptr<MessagePipe> message_pipe,
}
Dispatcher::Type MessagePipeDispatcher::GetType() const {
- return kTypeMessagePipe;
+ return Type::MESSAGE_PIPE;
}
// static
@@ -223,7 +223,8 @@ bool MessagePipeDispatcher::EndSerializeAndCloseImplNoLock(
MessagePipeDispatcherTransport::MessagePipeDispatcherTransport(
DispatcherTransport transport)
: DispatcherTransport(transport) {
- DCHECK_EQ(message_pipe_dispatcher()->GetType(), Dispatcher::kTypeMessagePipe);
+ DCHECK_EQ(message_pipe_dispatcher()->GetType(),
+ Dispatcher::Type::MESSAGE_PIPE);
}
} // namespace system

Powered by Google App Engine
This is Rietveld 408576698