| Index: net/spdy/spdy_write_queue.cc
|
| diff --git a/net/spdy/spdy_write_queue.cc b/net/spdy/spdy_write_queue.cc
|
| index ea6eb1f292243651f148ae63984da6f01ca61fb5..3a4eef5fea67df0a6975104b05c21e2b3e929171 100644
|
| --- a/net/spdy/spdy_write_queue.cc
|
| +++ b/net/spdy/spdy_write_queue.cc
|
| @@ -77,18 +77,18 @@ void SpdyWriteQueue::RemovePendingWritesForStream(
|
| CHECK_LE(priority, MAXIMUM_PRIORITY);
|
|
|
| DCHECK(stream.get());
|
| - if (DCHECK_IS_ON()) {
|
| - // |stream| should not have pending writes in a queue not matching
|
| - // its priority.
|
| - for (int i = MINIMUM_PRIORITY; i <= MAXIMUM_PRIORITY; ++i) {
|
| - if (priority == i)
|
| - continue;
|
| - for (std::deque<PendingWrite>::const_iterator it = queue_[i].begin();
|
| - it != queue_[i].end(); ++it) {
|
| - DCHECK_NE(it->stream.get(), stream.get());
|
| - }
|
| +#if DCHECK_IS_ON
|
| + // |stream| should not have pending writes in a queue not matching
|
| + // its priority.
|
| + for (int i = MINIMUM_PRIORITY; i <= MAXIMUM_PRIORITY; ++i) {
|
| + if (priority == i)
|
| + continue;
|
| + for (std::deque<PendingWrite>::const_iterator it = queue_[i].begin();
|
| + it != queue_[i].end(); ++it) {
|
| + DCHECK_NE(it->stream.get(), stream.get());
|
| }
|
| }
|
| +#endif
|
|
|
| // Do the actual deletion and removal, preserving FIFO-ness.
|
| std::deque<PendingWrite>* queue = &queue_[priority];
|
|
|