Bug 1198167 - nsPerformanceStatsService should wait for profile-before-change, not profile-before-shutdown. r=yoric

--HG--
extra : transplant_source : PL%BD%E1Q%05%7D%95%A0%13a%BA%F8%DAj%03N%C2Y%D1
This commit is contained in:
David Rajchenbach-Teller 2015-08-25 11:20:40 +02:00
Родитель 4426a9a7a8
Коммит 09be0de8cd
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -457,7 +457,7 @@ nsPerformanceStatsService::nsPerformanceStatsService()
{
nsCOMPtr<nsIObserverService> obs = mozilla::services::GetObserverService();
if (obs) {
mozilla::unused << obs->AddObserver(this, "profile-before-shutdown", false);
mozilla::unused << obs->AddObserver(this, "profile-before-change", false);
}
}
@ -530,7 +530,7 @@ NS_IMETHODIMP nsPerformanceStatsService::Observe(nsISupports *, const char *, co
// Upload telemetry
nsCOMPtr<nsIObserverService> obs = mozilla::services::GetObserverService();
if (obs) {
mozilla::unused << obs->RemoveObserver(this, "profile-before-shutdown");
mozilla::unused << obs->RemoveObserver(this, "profile-before-change");
}
if (mProcessStayed + mProcessMoved == 0) {