Bug 1572153 - Fix recording of Telemetry Events for Eval Usage r=chutten

Differential Revision: https://phabricator.services.mozilla.com/D41045

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tom Ritter 2019-08-07 16:55:22 +00:00
parent ea27710b35
commit 95fbdde774

View File

@ -488,8 +488,7 @@ void nsContentSecurityManager::AssertEvalNotRestricted(
}
if (!sTelemetryEventEnabled.exchange(true)) {
sTelemetryEventEnabled = true;
Telemetry::SetEventRecordingEnabled(
NS_LITERAL_CSTRING("security.evalUsage"), true);
Telemetry::SetEventRecordingEnabled(NS_LITERAL_CSTRING("security"), true);
}
Telemetry::RecordEvent(eventType, mozilla::Some(fileNameType.first()), extra);