Bug 763012 - Report telemetry data for whether or not updates are automatic. r=rstrong

This commit is contained in:
Brian R. Bondy 2012-06-15 11:59:35 -04:00
parent d04c812950
commit 52cd3783ba
2 changed files with 3 additions and 0 deletions

View File

@ -315,6 +315,7 @@ HISTOGRAM(PLACES_FRECENCY_CALC_TIME_MS, 1, 100, 10, EXPONENTIAL, "PLACES: Time t
*/
HISTOGRAM(UPDATER_STATUS_CODES, 1, 50, 51, LINEAR, "Updater: the status of the latest update performed")
HISTOGRAM_BOOLEAN(UPDATER_UPDATES_ENABLED, "Updater: Whether or not updates are enabled")
HISTOGRAM_BOOLEAN(UPDATER_UPDATES_AUTOMATIC, "Updater: Whether or not updates are automatic")
/**
* Thunderbird-specific telemetry.

View File

@ -1602,6 +1602,8 @@ UpdateService.prototype = {
// version.
this._sendBoolPrefTelemetryPing(PREF_APP_UPDATE_ENABLED,
"UPDATER_UPDATES_ENABLED");
this._sendBoolPrefTelemetryPing(PREF_APP_UPDATE_AUTO,
"UPDATER_UPDATES_AUTOMATIC");
update.statusText = gUpdateBundle.GetStringFromName("installSuccess");