mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
parent
e87890d893
commit
b882e7c6be
7 changed files with 0 additions and 212 deletions
|
|
@ -419,11 +419,6 @@ bool CacheEntry::Load(bool aTruncate, bool aPriority)
|
|||
{
|
||||
mozilla::MutexAutoUnlock unlock(mLock);
|
||||
|
||||
if (reportMiss) {
|
||||
CacheFileUtils::DetailedCacheHitTelemetry::AddRecord(
|
||||
CacheFileUtils::DetailedCacheHitTelemetry::MISS, mLoadStart);
|
||||
}
|
||||
|
||||
LOG((" performing load, file=%p", mFile.get()));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
rv = mFile->Init(fileKey,
|
||||
|
|
@ -458,16 +453,6 @@ NS_IMETHODIMP CacheEntry::OnFileReady(nsresult aResult, bool aIsNew)
|
|||
|
||||
MOZ_ASSERT(!mLoadStart.IsNull());
|
||||
|
||||
if (NS_SUCCEEDED(aResult)) {
|
||||
if (aIsNew) {
|
||||
CacheFileUtils::DetailedCacheHitTelemetry::AddRecord(
|
||||
CacheFileUtils::DetailedCacheHitTelemetry::MISS, mLoadStart);
|
||||
} else {
|
||||
CacheFileUtils::DetailedCacheHitTelemetry::AddRecord(
|
||||
CacheFileUtils::DetailedCacheHitTelemetry::HIT, mLoadStart);
|
||||
}
|
||||
}
|
||||
|
||||
// OnFileReady, that is the only code that can transit from LOADING
|
||||
// to any follow-on state and can only be invoked ones on an entry.
|
||||
// Until this moment there is no consumer that could manipulate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue