function remove(record) {
    // If this is called, the payload is empty, so we have to find by GUID.
    let addon = this.getAddonByGUID(record.id);
    if (!addon) {
      // We don't throw because if the add-on could not be found then we assume
      // it has already been uninstalled and there is nothing for this function
      // to do.
      return;
    }

    this._log.info("Uninstalling add-on: " + addon.id);
    let cb = Async.makeSpinningCallback();
    AddonUtils.uninstallAddon(addon, cb);
    cb.wait();
  }
/**
   * Provides core Store API to remove/uninstall an add-on from a record.
   */
Provides core Store API to remove/uninstall an add-on from a record.
Provides core Store API to remove / uninstall an add - on from a record .
function remove(record) {
    let addon = this.getAddonByGUID(record.id);
    if (!addon) {
      return;
    }
    this._log.info("Uninstalling add-on: " + addon.id);
    let cb = Async.makeSpinningCallback();
    AddonUtils.uninstallAddon(addon, cb);
    cb.wait();
  }
function remove ( record ) { let addon = this . getAddonByGUID ( record . id ) ; if ( ! addon ) { return ; } this . _log . info ( "Uninstalling add-on: " + addon . id ) ; let cb = Async . makeSpinningCallback ( ) ; AddonUtils . uninstallAddon ( addon , cb ) ; cb . wait ( ) ; }
Provides core Store API to remove/uninstall an add-on from a record.
Provides core Store API to remove / uninstall an add - on from a record .
// If this is called, the payload is empty, so we have to find by GUID. // We don't throw because if the add-on could not be found then we assume // it has already been uninstalled and there is nothing for this function // to do.