зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
4426a9a7a8
Коммит
09be0de8cd
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче