mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Remove telemetry probes for cache file system.
This commit is contained in:
parent
57251fc4e7
commit
e87890d893
5 changed files with 0 additions and 99 deletions
|
|
@ -86,9 +86,6 @@ bool CacheObserver::sSanitizeOnShutdown = kDefaultSanitizeOnShutdown;
|
|||
static bool kDefaultClearCacheOnShutdown = false;
|
||||
bool CacheObserver::sClearCacheOnShutdown = kDefaultClearCacheOnShutdown;
|
||||
|
||||
static bool kDefaultCacheFSReported = false;
|
||||
bool CacheObserver::sCacheFSReported = kDefaultCacheFSReported;
|
||||
|
||||
static uint32_t const kDefaultMaxShutdownIOLag = 2; // seconds
|
||||
Atomic<uint32_t, Relaxed> CacheObserver::sMaxShutdownIOLag(kDefaultMaxShutdownIOLag);
|
||||
|
||||
|
|
@ -327,32 +324,6 @@ CacheObserver::StoreDiskCacheCapacity()
|
|||
sDiskCacheCapacity);
|
||||
}
|
||||
|
||||
// static
|
||||
void
|
||||
CacheObserver::SetCacheFSReported()
|
||||
{
|
||||
sCacheFSReported = true;
|
||||
|
||||
if (!sSelf) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (NS_IsMainThread()) {
|
||||
sSelf->StoreCacheFSReported();
|
||||
} else {
|
||||
nsCOMPtr<nsIRunnable> event =
|
||||
NewRunnableMethod(sSelf, &CacheObserver::StoreCacheFSReported);
|
||||
NS_DispatchToMainThread(event);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
CacheObserver::StoreCacheFSReported()
|
||||
{
|
||||
mozilla::Preferences::SetInt("browser.cache.disk.filesystem_reported",
|
||||
sCacheFSReported);
|
||||
}
|
||||
|
||||
// static
|
||||
void CacheObserver::ParentDirOverride(nsIFile** aDir)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue