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
Родитель 638a81e9e2
Коммит a1f1fb9e83
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -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;
}