addVariantToSwitchHistory_(variant, fromAdaptation) {
    const switchHistory = this.stats_.getSwitchHistory();
    switchHistory.updateCurrentVariant(variant, fromAdaptation);
  }
@param {shaka.extern.Variant} variant
@param {boolean} fromAdaptation
@private