Bug 785960 - "Don't keep activities" developer option gets counted as OOM in telemetry. r=kats

This commit is contained in:
Gian-Carlo Pascutto 2012-10-09 17:59:42 +02:00
Родитель 1188de1f60
Коммит 457fb369f7
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -1511,7 +1511,9 @@ abstract public class GeckoApp
savedInstanceState.getBoolean(SAVED_STATE_IN_BACKGROUND, false);
Log.i(LOGTAG, "Was in background: " + wasInBackground);
if (!wasInBackground) {
// Don't log OOM-kills if only one activity was destroyed. (For example
// from "Don't keep activities" on ICS)
if (!wasInBackground && !mIsRestoringActivity) {
Telemetry.HistogramAdd("OUT_OF_MEMORY_KILLED", 1);
}
}