Bug 1064137 - fix datareporting service so it doesn't initialize a test's policy object. r=gfritzsche

This commit is contained in:
Mark Hammond 2014-09-16 09:31:13 +10:00
parent de5ef22e44
commit cea29f173b

View File

@ -137,7 +137,8 @@ DataReportingService.prototype = Object.freeze({
this._os.removeObserver(this, "sessionstore-windows-restored");
this._os.addObserver(this, "quit-application", false);
this.policy.startPolling();
let policy = this.policy;
policy.startPolling();
// Don't initialize Firefox Health Reporter collection and submission
// service unless it is enabled.
@ -175,7 +176,7 @@ DataReportingService.prototype = Object.freeze({
// The instance installs its own shutdown observers. So, we just
// fire and forget: it will clean itself up.
let reporter = this.healthReporter;
this.policy.ensureUserNotified();
policy.ensureUserNotified();
}.bind(this),
}, delayInterval, this.timer.TYPE_ONE_SHOT);