diff options
author | kushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-11 12:06:57 +0000 |
---|---|---|
committer | kushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-11 12:06:57 +0000 |
commit | c34e9a7afa5eb386f22aa2480156b6bdec8597cd (patch) | |
tree | 3aed8b60fedf6f25e7a5bd0c02b3c075086e2cfd /net/disk_cache/mem_entry_impl.cc | |
parent | fd9d182f030af6a3e14b218d3be4680059f404aa (diff) | |
download | chromium_src-c34e9a7afa5eb386f22aa2480156b6bdec8597cd.zip chromium_src-c34e9a7afa5eb386f22aa2480156b6bdec8597cd.tar.gz chromium_src-c34e9a7afa5eb386f22aa2480156b6bdec8597cd.tar.bz2 |
Updating logging in src/net/disk_cache/. Using DCHECK_NE/EQ/GT/GE/LT/LE() where possible
BUG=58409
Review URL: http://codereview.chromium.org/6966001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84966 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/mem_entry_impl.cc')
-rw-r--r-- | net/disk_cache/mem_entry_impl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/disk_cache/mem_entry_impl.cc b/net/disk_cache/mem_entry_impl.cc index 9df7306..f1267ce 100644 --- a/net/disk_cache/mem_entry_impl.cc +++ b/net/disk_cache/mem_entry_impl.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -107,7 +107,7 @@ void MemEntryImpl::Open() { // counting to child entry. DCHECK(type() == kParentEntry); ref_count_++; - DCHECK(ref_count_ >= 0); + DCHECK_GE(ref_count_, 0); DCHECK(!doomed_); } @@ -141,7 +141,7 @@ void MemEntryImpl::Close() { // Only a parent entry can be closed. DCHECK(type() == kParentEntry); ref_count_--; - DCHECK(ref_count_ >= 0); + DCHECK_GE(ref_count_, 0); if (!ref_count_ && doomed_) InternalDoom(); } |