Bug 1606187 - Part 2b: Update users of nsClassHashtable to handle UniquePtr differences r=KrisWright,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59042
This commit is contained in:
@@ -321,7 +321,7 @@ void LookupCache::InvalidateExpiredCacheEntries() {
|
||||
int64_t nowSec = PR_Now() / PR_USEC_PER_SEC;
|
||||
|
||||
for (auto iter = mFullHashCache.Iter(); !iter.Done(); iter.Next()) {
|
||||
CachedFullHashResponse* response = iter.Data();
|
||||
CachedFullHashResponse* response = iter.UserData();
|
||||
if (response->negativeCacheExpirySec < nowSec) {
|
||||
iter.Remove();
|
||||
}
|
||||
@@ -372,7 +372,7 @@ void LookupCache::GetCacheInfo(nsIUrlClassifierCacheInfo** aCache) const {
|
||||
CStringToHexString(prefix, entry->prefix);
|
||||
|
||||
// Set expiry of the cache entry.
|
||||
CachedFullHashResponse* response = iter.Data();
|
||||
CachedFullHashResponse* response = iter.UserData();
|
||||
entry->expirySec = response->negativeCacheExpirySec;
|
||||
|
||||
// Set positive cache.
|
||||
@@ -660,7 +660,7 @@ void LookupCache::DumpCache() const {
|
||||
}
|
||||
|
||||
for (auto iter = mFullHashCache.ConstIter(); !iter.Done(); iter.Next()) {
|
||||
CachedFullHashResponse* response = iter.Data();
|
||||
CachedFullHashResponse* response = iter.UserData();
|
||||
|
||||
nsAutoCString prefix;
|
||||
CStringToHexString(
|
||||
|
||||
Reference in New Issue
Block a user