summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/mem_rankings.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/mem_rankings.cc')
-rw-r--r--net/disk_cache/mem_rankings.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/disk_cache/mem_rankings.cc b/net/disk_cache/mem_rankings.cc
index 6ca1bf7..d5f4a65 100644
--- a/net/disk_cache/mem_rankings.cc
+++ b/net/disk_cache/mem_rankings.cc
@@ -4,10 +4,15 @@
#include "net/disk_cache/mem_rankings.h"
+#include "base/logging.h"
#include "net/disk_cache/mem_entry_impl.h"
namespace disk_cache {
+MemRankings::~MemRankings() {
+ DCHECK(!head_ && !tail_);
+}
+
void MemRankings::Insert(MemEntryImpl* node) {
if (head_)
head_->set_prev(node);