Commit d97780af authored by sky@chromium.org's avatar sky@chromium.org

Converts some DCHECKs into CHECKs in hopes of helping with a crash

BUG=392974
TEST=none
R=darin@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#291405}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291405 0039d316-1c4b-4281-b951-d872f2087c98
parent 0d950e1e
...@@ -63,7 +63,7 @@ bool Connector::WaitForIncomingMessage() { ...@@ -63,7 +63,7 @@ bool Connector::WaitForIncomingMessage() {
} }
bool Connector::Accept(Message* message) { bool Connector::Accept(Message* message) {
MOJO_DCHECK(message_pipe_.is_valid()); MOJO_CHECK(message_pipe_.is_valid());
if (error_) if (error_)
return false; return false;
...@@ -122,7 +122,7 @@ void Connector::CallOnHandleReady(void* closure, MojoResult result) { ...@@ -122,7 +122,7 @@ void Connector::CallOnHandleReady(void* closure, MojoResult result) {
} }
void Connector::OnHandleReady(MojoResult result) { void Connector::OnHandleReady(MojoResult result) {
MOJO_DCHECK(async_wait_id_ != 0); MOJO_CHECK(async_wait_id_ != 0);
async_wait_id_ = 0; async_wait_id_ = 0;
if (result != MOJO_RESULT_OK) { if (result != MOJO_RESULT_OK) {
NotifyError(); NotifyError();
...@@ -133,7 +133,7 @@ void Connector::OnHandleReady(MojoResult result) { ...@@ -133,7 +133,7 @@ void Connector::OnHandleReady(MojoResult result) {
} }
void Connector::WaitToReadMore() { void Connector::WaitToReadMore() {
MOJO_DCHECK(!async_wait_id_); MOJO_CHECK(!async_wait_id_);
async_wait_id_ = waiter_->AsyncWait(message_pipe_.get().value(), async_wait_id_ = waiter_->AsyncWait(message_pipe_.get().value(),
MOJO_HANDLE_SIGNAL_READABLE, MOJO_HANDLE_SIGNAL_READABLE,
MOJO_DEADLINE_INDEFINITE, MOJO_DEADLINE_INDEFINITE,
......
...@@ -65,7 +65,7 @@ class InterfaceImplState : public ErrorHandler { ...@@ -65,7 +65,7 @@ class InterfaceImplState : public ErrorHandler {
void Bind(ScopedMessagePipeHandle handle, void Bind(ScopedMessagePipeHandle handle,
bool instance_bound_to_pipe, bool instance_bound_to_pipe,
const MojoAsyncWaiter* waiter) { const MojoAsyncWaiter* waiter) {
MOJO_DCHECK(!router_); MOJO_CHECK(!router_);
FilterChain filters; FilterChain filters;
filters.Append<MessageHeaderValidator>(); filters.Append<MessageHeaderValidator>();
......
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