mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
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:
parent
ee883aab7f
commit
9c45a35cf2
@ -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: () => {}
|
||||
};
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user