Bug 887081 - Attach healthreporter to global object. r=gps

This commit is contained in:
Stefan Mirea 2013-09-06 09:08:26 -07:00
parent 2337bf0001
commit ba46a76f9c

View File

@ -1142,7 +1142,7 @@ AbstractHealthReporter.prototype = Object.freeze({
* @param policy
* (HealthReportPolicy) Policy driving execution of HealthReporter.
*/
function HealthReporter(branch, policy, sessionRecorder, stateLeaf=null) {
this.HealthReporter = function (branch, policy, sessionRecorder, stateLeaf=null) {
this._stateLeaf = stateLeaf;
AbstractHealthReporter.call(this, branch, policy, sessionRecorder);
@ -1158,7 +1158,7 @@ function HealthReporter(branch, policy, sessionRecorder, stateLeaf=null) {
this._state = new HealthReporterState(this);
}
HealthReporter.prototype = Object.freeze({
this.HealthReporter.prototype = Object.freeze({
__proto__: AbstractHealthReporter.prototype,
QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver]),