mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 1064137 - fix datareporting service so it doesn't initialize a test's policy object. r=gfritzsche
This commit is contained in:
parent
de5ef22e44
commit
cea29f173b
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user