Skip to content

Commit

Permalink
Temporary CHECK version 2 in IPC::Channel::Send() to help track down …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
viettrungluu@chromium.org committed Mar 29, 2014
1 parent a4f6ab6 commit 884644c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ipc/ipc_channel_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,8 @@ bool Channel::ChannelImpl::ProcessOutgoingMessages() {
}

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
<< " with type " << message->type()
<< " (" << output_queue_.size() << " in queue)";
Expand Down
2 changes: 2 additions & 0 deletions ipc/ipc_channel_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ void Channel::ChannelImpl::Close() {
}

bool Channel::ChannelImpl::Send(Message* message) {
// TODO(vtl): Remove once bug resolved.
CHECK(message && message->data()) << "crbug.com/357915";
DCHECK(thread_check_->CalledOnValidThread());
DVLOG(2) << "sending message @" << message << " on channel @" << this
<< " with type " << message->type()
Expand Down

0 comments on commit 884644c

Please sign in to comment.