bug 1488593 - disable family safety detection by default r=jcj

As of bug 1346297, we don't collect telemetry for the family safety root
feature. At this point, it makes the most sense to disable the entire feature by
default.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dana Keeler 2018-09-05 23:58:21 +00:00
parent 50215c6a21
commit 36505cb883

View File

@ -573,8 +573,10 @@ nsNSSComponent::MaybeEnableFamilySafetyCompatibility()
if (!(IsWin8Point1OrLater() && !IsWin10OrLater())) {
return;
}
// Detect but don't import by default.
uint32_t familySafetyMode = Preferences::GetUint(kFamilySafetyModePref, 1);
// Disabled by default.
const uint32_t FAMILY_SAFETY_MODE_DEFAULT = 0;
uint32_t familySafetyMode = Preferences::GetUint(kFamilySafetyModePref,
FAMILY_SAFETY_MODE_DEFAULT);
if (familySafetyMode > 2) {
familySafetyMode = 0;
}