Index: mojo/edk/system/dispatcher.cc |
diff --git a/mojo/edk/system/dispatcher.cc b/mojo/edk/system/dispatcher.cc |
index c58da9f5fe56bcd00800858689dab6a23b93d6ef..5607125990bea0be43812d02f0af31b246698ca3 100644 |
--- a/mojo/edk/system/dispatcher.cc |
+++ b/mojo/edk/system/dispatcher.cc |
@@ -5,7 +5,7 @@ |
#include "mojo/edk/system/dispatcher.h" |
#include "base/logging.h" |
-#include "mojo/edk/system/configuration.h" |
+#include "mojo/edk/system/constants.h" |
#include "mojo/edk/system/message_pipe_dispatcher.h" |
#include "mojo/edk/system/platform_handle_dispatcher.h" |
#include "mojo/edk/system/shared_buffer_dispatcher.h" |
@@ -58,8 +58,8 @@ |
size_t* actual_size, |
embedder::PlatformHandleVector* platform_handles) { |
DCHECK(dispatcher); |
- return dispatcher->EndSerializeAndClose(channel, destination, actual_size, |
- platform_handles); |
+ return dispatcher->EndSerializeAndClose( |
+ channel, destination, actual_size, platform_handles); |
} |
// static |
@@ -107,9 +107,8 @@ |
uint32_t num_bytes, |
std::vector<DispatcherTransport>* transports, |
MojoWriteMessageFlags flags) { |
- DCHECK(!transports || |
- (transports->size() > 0 && |
- transports->size() < GetConfiguration().max_message_num_handles)); |
+ DCHECK(!transports || (transports->size() > 0 && |
+ transports->size() < kMaxMessageNumHandles)); |
base::AutoLock locker(lock_); |
if (is_closed_) |
@@ -130,8 +129,8 @@ |
if (is_closed_) |
return MOJO_RESULT_INVALID_ARGUMENT; |
- return ReadMessageImplNoLock(bytes, num_bytes, dispatchers, num_dispatchers, |
- flags); |
+ return ReadMessageImplNoLock( |
+ bytes, num_bytes, dispatchers, num_dispatchers, flags); |
} |
MojoResult Dispatcher::WriteData(UserPointer<const void> elements, |
@@ -474,8 +473,8 @@ |
base::AutoLock locker(lock_); |
#endif |
- return EndSerializeAndCloseImplNoLock(channel, destination, actual_size, |
- platform_handles); |
+ return EndSerializeAndCloseImplNoLock( |
+ channel, destination, actual_size, platform_handles); |
} |
// DispatcherTransport --------------------------------------------------------- |