Bug 724513 - Part 3 - Add telemetry for the invalid disk cache situation. r=taras

This commit is contained in:
Graeme McCutcheon
2012-10-11 09:50:41 +01:00
parent 732563539f
commit b7f77d1386
3 changed files with 56 additions and 24 deletions

View File

@@ -481,6 +481,7 @@ StartupCache::InvalidateCache()
if (NS_FAILED(rv) && rv != NS_ERROR_FILE_TARGET_DOES_NOT_EXIST &&
rv != NS_ERROR_FILE_NOT_FOUND) {
gIgnoreDiskCache = true;
mozilla::Telemetry::Accumulate(Telemetry::STARTUP_CACHE_INVALID, true);
return;
}
gIgnoreDiskCache = false;