bin/XULRunner21_0/components/nsUpdateService.js
/**
   * Submit the results of applying the update via telemetry.
   *
   * @param  status
   *         The status of the update as read from the update.status file
   */
Submit the results of applying the update via telemetry.
@param  status
The status of the update as read from the update.status file
Submit the results of applying the update via telemetry . @param status The status of the update as read from the update . status file
function AUS__statusTelemetryPing(status) {
    try {
      let parts = status.split(":");
      if ((parts.length == 1 && status != STATE_SUCCEEDED) ||
          (parts.length > 1  && parts[0] != STATE_FAILED)) {
        return;
      }
      let result = 0; 
      if (parts.length > 1) {
        result = parseInt(parts[1]) || INVALID_UPDATER_STATUS_CODE;
      }
      Services.telemetry.getHistogramById("UPDATER_STATUS_CODES").add(result);
    } catch(e) {
      Components.utils.reportError(e);
    }
  }
function AUS__statusTelemetryPing ( status ) { try { let parts = status . split ( ":" ) ; if ( ( parts . length == 1 && status != STATE_SUCCEEDED ) || ( parts . length > 1 && parts [ 0 ] != STATE_FAILED ) ) { return ; } let result = 0 ; if ( parts . length > 1 ) { result = parseInt ( parts [ 1 ] ) || INVALID_UPDATER_STATUS_CODE ; } Services . telemetry . getHistogramById ( "UPDATER_STATUS_CODES" ) . add ( result ) ; } catch ( e ) { Components . utils . reportError ( e ) ; } }
Submit the results of applying the update via telemetry.
Submit the results of applying the update via telemetry .
// we only want to report success or failure // 0 means success // Don't allow any exception to be propagated.