Bug 657411 - Telemetry doesn't register for idle-daily r=mak

This commit is contained in:
Taras Glek 2011-05-16 13:07:45 -07:00
Родитель 479d8a0b0c
Коммит 78edb678a3
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -234,7 +234,8 @@ TelemetryPing.prototype = {
let timerCallback = function() {
let idleService = Cc["@mozilla.org/widget/idleservice;1"].
getService(Ci.nsIIdleService);
idleService.addIdleObserver(self, TELEMETRY_INTERVAL);
idleService.addIdleObserver(self, TELEMETRY_INTERVAL);
Services.obs.addObserver(self, "idle-daily", null);
self.gatherMemory();
}
this._timer.initWithCallback(timerCallback, TELEMETRY_DELAY, Ci.nsITimer.TYPE_ONE_SHOT);