mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-24 16:54:08 +00:00
Bug 1277806 - Add the missing C++ API for boolean scalars. r=gfritzsche
This commit is contained in:
parent
ee41a97e82
commit
c514c653b1
@ -3008,6 +3008,12 @@ ScalarSet(mozilla::Telemetry::ScalarID aId, uint32_t aVal)
|
||||
TelemetryScalar::Set(aId, aVal);
|
||||
}
|
||||
|
||||
void
|
||||
ScalarSet(mozilla::Telemetry::ScalarID aId, bool aVal)
|
||||
{
|
||||
TelemetryScalar::Set(aId, aVal);
|
||||
}
|
||||
|
||||
void
|
||||
ScalarSet(mozilla::Telemetry::ScalarID aId, const nsAString& aVal)
|
||||
{
|
||||
|
@ -375,6 +375,14 @@ void ScalarAdd(mozilla::Telemetry::ScalarID aId, uint32_t aValue);
|
||||
*/
|
||||
void ScalarSet(mozilla::Telemetry::ScalarID aId, uint32_t aValue);
|
||||
|
||||
/**
|
||||
* Sets the scalar to the given value.
|
||||
*
|
||||
* @param aId The scalar enum id.
|
||||
* @param aValue The value to set the scalar to.
|
||||
*/
|
||||
void ScalarSet(mozilla::Telemetry::ScalarID aId, bool aValue);
|
||||
|
||||
/**
|
||||
* Sets the scalar to the given value.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user