Bug 1226616 - The presence of the general.config.filename preference should be reported on telemetry. r=njn, data-review=francois

This commit is contained in:
Florian Quèze
2017-11-23 00:59:38 +01:00
parent dbb9ec7a35
commit 3d60dc7547
2 changed files with 17 additions and 0 deletions

View File

@@ -3255,6 +3255,8 @@ Preferences::GetInstanceForService()
nsresult rv = Preferences::GetCString(
"general.config.filename", lockFileName, PrefValueKind::User);
if (NS_SUCCEEDED(rv)) {
Telemetry::ScalarSet(Telemetry::ScalarID::GENERAL_AUTOCONFIG_HAS_FILENAME,
true);
NS_CreateServicesFromCategory(
"pref-config-startup",
static_cast<nsISupports*>(static_cast<void*>(sPreferences)),

View File

@@ -442,6 +442,21 @@ storage.sync.api.usage:
record_in_processes:
- main
general.autoconfig:
has_filename:
bug_numbers:
- 1226616
description: >
Recorded on startup. Boolean stating whether the
general.autoconfig.filename preference has a value.
expires: never
kind: boolean
notification_emails:
- florian@mozilla.com
release_channel_collection: opt-out
record_in_processes:
- 'main'
services.sync:
fxa_verification_method:
bug_numbers: