Bug 1266832 - add dummy telemetry object to Services shim; r=gregtatum

MozReview-Commit-ID: Cg6ciWVNbEx

--HG--
extra : rebase_source : 019115aff8dc6e0329559510a8df00814452222a
This commit is contained in:
Tom Tromey 2016-07-20 13:53:50 -06:00
parent ee883aab7f
commit 9c45a35cf2

View File

@ -501,6 +501,24 @@ const Services = {
return true;
},
},
/**
* A no-op implementation of Services.telemetry. This supports just
* the subset of Services.telemetry that is used by devtools.
*/
telemetry: {
getHistogramById: function (name) {
return {
add: () => {}
};
},
getKeyedHistogramById: function (name) {
return {
add: () => {}
};
},
},
};
/**