Backed out changeset 9d5fa6d7558a (bug 1247432) for being a possible cause of the spike in ASAN test_browserElement_oop_getWebManifest.html failures

--HG--
extra : commitid : 1NKaYZHHXip
extra : rebase_source : 4f280016d0e7c767eca959d428a6978397514840
This commit is contained in:
Wes Kocher 2016-02-16 16:40:43 -08:00
Родитель c9708caf53
Коммит 6d91654914
1 изменённых файлов: 11 добавлений и 7 удалений

Просмотреть файл

@ -503,13 +503,18 @@ CacheObserver::Observe(nsISupports* aSubject,
return NS_OK;
}
if (!strcmp(aTopic, "profile-change-net-teardown") ||
!strcmp(aTopic, "profile-before-change") ||
!strcmp(aTopic, "xpcom-shutdown")) {
if (!strcmp(aTopic, "profile-before-change")) {
RefPtr<CacheStorageService> service = CacheStorageService::Self();
if (service) {
if (service)
service->Shutdown();
return NS_OK;
}
if (!strcmp(aTopic, "xpcom-shutdown")) {
RefPtr<CacheStorageService> service = CacheStorageService::Self();
if (service)
service->Shutdown();
}
CacheFileIOManager::Shutdown();
return NS_OK;
@ -517,9 +522,8 @@ CacheObserver::Observe(nsISupports* aSubject,
if (!strcmp(aTopic, "last-pb-context-exited")) {
RefPtr<CacheStorageService> service = CacheStorageService::Self();
if (service) {
if (service)
service->DropPrivateBrowsingEntries();
}
return NS_OK;
}