| Index: ipc/ipc_channel_proxy.cc
|
| diff --git a/ipc/ipc_channel_proxy.cc b/ipc/ipc_channel_proxy.cc
|
| index f542eae2b0e59403560c4709afaf96f19ff8c6bf..2e8c9b3f98b285fc33f44a611f94faa12fe81d23 100644
|
| --- a/ipc/ipc_channel_proxy.cc
|
| +++ b/ipc/ipc_channel_proxy.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/compiler_specific.h"
|
| +#include "base/debug/trace_event.h"
|
| #include "base/location.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| @@ -238,13 +239,23 @@ void ChannelProxy::Context::AddFilter(MessageFilter* filter) {
|
|
|
| // Called on the listener's thread
|
| void ChannelProxy::Context::OnDispatchMessage(const Message& message) {
|
| +#ifdef IPC_MESSAGE_LOG_ENABLED
|
| + Logging* logger = Logging::GetInstance();
|
| + std::string name;
|
| + logger->GetMessageText(message.type(), &name, &message, NULL);
|
| + TRACE_EVENT1("task", "ChannelProxy::Context::OnDispatchMessage",
|
| + "name", name);
|
| +#else
|
| + TRACE_EVENT1("task", "ChannelProxy::Context::OnDispatchMessage",
|
| + "type", message.type());
|
| +#endif
|
| +
|
| if (!listener_)
|
| return;
|
|
|
| OnDispatchConnected();
|
|
|
| #ifdef IPC_MESSAGE_LOG_ENABLED
|
| - Logging* logger = Logging::GetInstance();
|
| if (message.type() == IPC_LOGGING_ID) {
|
| logger->OnReceivedLoggingMessage(message);
|
| return;
|
|
|