Bug 618537 - Android - broadcast memory-pressure from onStop. r=mwu a=blocking-fennec

This commit is contained in:
Doug Turner 2010-12-11 14:36:30 -08:00
parent ba1d10c471
commit 1f7548f709

View File

@ -234,7 +234,11 @@ nsAppShell::ProcessNextNativeEvent(PRBool mayWait)
break;
case AndroidGeckoEvent::ACTIVITY_STOPPING: {
// Do nothing yet.
nsCOMPtr<nsIObserverService> obsServ =
mozilla::services::GetObserverService();
NS_NAMED_LITERAL_STRING(minimize, "heap-minimize");
obsServ->NotifyObservers(nsnull, "memory-pressure", minimize.get());
break;
}