Temporary CHECK version 2 in IPC::Channel::Send() to help track down crash.

TBR=sievers@chromium.org, cpu@chromium.org
BUG=357915

Review URL: https://codereview.chromium.org/218433002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260399 0039d316-1c4b-4281-b951-d872f2087c98
parent a4f6ab6b
...@@ -527,6 +527,8 @@ bool Channel::ChannelImpl::ProcessOutgoingMessages() { ...@@ -527,6 +527,8 @@ bool Channel::ChannelImpl::ProcessOutgoingMessages() {
} }
bool Channel::ChannelImpl::Send(Message* message) { bool Channel::ChannelImpl::Send(Message* message) {
// TODO(vtl): Remove once bug resolved.
CHECK(message && message->data()) << "crbug.com/357915";
DVLOG(2) << "sending message @" << message << " on channel @" << this DVLOG(2) << "sending message @" << message << " on channel @" << this
<< " with type " << message->type() << " with type " << message->type()
<< " (" << output_queue_.size() << " in queue)"; << " (" << output_queue_.size() << " in queue)";
......
...@@ -81,6 +81,8 @@ void Channel::ChannelImpl::Close() { ...@@ -81,6 +81,8 @@ void Channel::ChannelImpl::Close() {
} }
bool Channel::ChannelImpl::Send(Message* message) { bool Channel::ChannelImpl::Send(Message* message) {
// TODO(vtl): Remove once bug resolved.
CHECK(message && message->data()) << "crbug.com/357915";
DCHECK(thread_check_->CalledOnValidThread()); DCHECK(thread_check_->CalledOnValidThread());
DVLOG(2) << "sending message @" << message << " on channel @" << this DVLOG(2) << "sending message @" << message << " on channel @" << this
<< " with type " << message->type() << " with type " << message->type()
......
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