зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
ee883aab7f
Коммит
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: () => {}
|
||||
};
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче