From c6cd4c876e4452f5ced10daef981e5f9d784c33f Mon Sep 17 00:00:00 2001 From: "viettrungluu@chromium.org" Date: Sat, 29 Mar 2014 17:16:44 +0000 Subject: Add a temporary CHECK to IPC::Channel::Send() to help track down crash. TBR=cbentzel@chromium.org, cpu@chromium.org BUG=357915 Review URL: https://codereview.chromium.org/216293008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260373 0039d316-1c4b-4281-b951-d872f2087c98 --- ipc/ipc_channel_posix.cc | 1 + ipc/ipc_channel_win.cc | 1 + 2 files changed, 2 insertions(+) (limited to 'ipc') diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc index 11b20ff..b8aee40 100644 --- a/ipc/ipc_channel_posix.cc +++ b/ipc/ipc_channel_posix.cc @@ -527,6 +527,7 @@ bool Channel::ChannelImpl::ProcessOutgoingMessages() { } bool Channel::ChannelImpl::Send(Message* message) { + CHECK(message) << "crbug.com/357915"; // TODO(vtl): Remove once bug resolved. DVLOG(2) << "sending message @" << message << " on channel @" << this << " with type " << message->type() << " (" << output_queue_.size() << " in queue)"; diff --git a/ipc/ipc_channel_win.cc b/ipc/ipc_channel_win.cc index d044ef1..3f2c79a 100644 --- a/ipc/ipc_channel_win.cc +++ b/ipc/ipc_channel_win.cc @@ -81,6 +81,7 @@ void Channel::ChannelImpl::Close() { } bool Channel::ChannelImpl::Send(Message* message) { + CHECK(message) << "crbug.com/357915"; // TODO(vtl): Remove once bug resolved. DCHECK(thread_check_->CalledOnValidThread()); DVLOG(2) << "sending message @" << message << " on channel @" << this << " with type " << message->type() -- cgit v1.1