Bug 1277806 - Add the missing C++ API for boolean scalars. r=gfritzsche

This commit is contained in:
Alessio Placitelli 2016-09-14 02:59:00 +02:00
parent ee41a97e82
commit c514c653b1
2 changed files with 14 additions and 0 deletions

View File

@ -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)
{

View File

@ -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.
*