Commit c7fcdeaa authored by Wez's avatar Wez Committed by Commit Bot

Reintroduce verbose logging in IPC::Channel::Send().

Platform-specific IPC::Channel implementations included Chrome IPC
message logging, but this was not carried into the Mojo-based Channel
implementation.

Chrome IPC message logging is higher-level than Mojo IPC message logs,
which can be useful for certain kinds of diagnosis.

Bug: 816620
Change-Id: I467857fd07b66c3d468039d6fb7c2950f931c8bb
Reviewed-on: https://chromium-review.googlesource.com/956347Reviewed-by: default avatarKen Rockot <rockot@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542050}
parent b492bcc3
......@@ -217,6 +217,12 @@ void ChannelMojo::OnAssociatedInterfaceRequest(
}
bool ChannelMojo::Send(Message* message) {
DVLOG(2) << "sending message @" << message << " on channel @" << this
<< " with type " << message->type();
#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
Logging::GetInstance()->OnSendMessage(message);
#endif
std::unique_ptr<Message> scoped_message = base::WrapUnique(message);
if (!message_reader_)
return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment