bin/XULRunner21_0/components/nsUpdateService.js
/**
   * Submit a telemetry ping with the int value of a pref for a histogram
   *
   * @param  pref
   *         The preference to report
   * @param histogram
   *         The histogram ID to report to
   */
Submit a telemetry ping with the int value of a pref for a histogram
@param  pref
The preference to report
@param histogram
The histogram ID to report to
Submit a telemetry ping with the int value of a pref for a histogram @param pref The preference to report @param histogram The histogram ID to report to
function AUS__intTelemetryPing(pref, histogram) {
    try {
      let val = getPref("getIntPref", pref, 0);
      Services.telemetry.getHistogramById(histogram).add(val);
    } catch(e) {
      Components.utils.reportError(e);
    }
  }
function AUS__intTelemetryPing ( pref , histogram ) { try { let val = getPref ( "getIntPref" , pref , 0 ) ; Services . telemetry . getHistogramById ( histogram ) . add ( val ) ; } catch ( e ) { Components . utils . reportError ( e ) ; } }
Submit a telemetry ping with the int value of a pref for a histogram
 @param  pref
         The preference to report
 @param histogram
         The histogram ID to report to
Submit a telemetry ping with the int value of a pref for a histogram @param pref The preference to report @param histogram The histogram ID to report to
// The getPref is already wrapped in a try/catch but we never // want telemetry pings breaking app update so we just put it // inside the try to be safe. // Don't allow any exception to be propagated.