Index: net/http/http_cache.cc |
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc |
index 519f192396b2ba8e070e8de497863720d74f52b3..eaaffe48c1bf538768e39d46bd5505b71f7e0614 100644 |
--- a/net/http/http_cache.cc |
+++ b/net/http/http_cache.cc |
@@ -336,6 +336,7 @@ HttpCache::HttpCache(std::unique_ptr<HttpTransactionFactory> network_layer, |
} |
HttpCache::~HttpCache() { |
+ DCHECK_CALLED_ON_VALID_THREAD(thread_checker_); |
// Transactions should see an invalid cache after this point; otherwise they |
// could see an inconsistent object (half destroyed). |
weak_factory_.InvalidateWeakPtrs(); |