Bug 1882482 - Collect media.eme.enabled. r=tjr

Differential Revision: https://phabricator.services.mozilla.com/D202935
This commit is contained in:
Tom Ritter 2024-03-08 21:29:05 +00:00
parent a5dc0a83a5
commit f3a73f9a0f
2 changed files with 23 additions and 0 deletions

View File

@ -373,3 +373,21 @@ characteristics:
expires: never
data_sensitivity:
- interaction
prefs_media_eme_enabled:
type: boolean
description: >
Value of the media.eme.enabled pref.
lifetime: application
send_in_pings:
- user-characteristics
notification_emails:
- tom@mozilla.com
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1879151
- https://bugzilla.mozilla.org/show_bug.cgi?id=1882482
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1882482#c6
expires: never
data_sensitivity:
- interaction

View File

@ -13,6 +13,8 @@
#include "mozilla/glean/GleanPings.h"
#include "mozilla/glean/GleanMetrics.h"
#include "mozilla/StaticPrefs_media.h"
#include "mozilla/LookAndFeel.h"
#include "mozilla/PreferenceSheet.h"
#include "mozilla/RelativeLuminanceUtils.h"
@ -123,6 +125,9 @@ void PopulatePrefs() {
mozilla::Preferences::GetLocalizedCString("intl.accept_languages",
acceptLang);
mozilla::glean::characteristics::prefs_intl_accept_languages.Set(acceptLang);
mozilla::glean::characteristics::prefs_media_eme_enabled.Set(
mozilla::StaticPrefs::media_eme_enabled());
}
// ==================================================================