function changeItemID(oldID, newID) {
    // We always update the GUID in the reconciler because it will be
    // referenced later in the sync process.
    let state = this.reconciler.getAddonStateFromSyncGUID(oldID);
    if (state) {
      state.guid = newID;
      let cb = Async.makeSpinningCallback();
      this.reconciler.saveState(null, cb);
      cb.wait();
    }

    let addon = this.getAddonByGUID(oldID);
    if (!addon) {
      this._log.debug("Cannot change item ID (" + oldID + ") in Add-on " +
                      "Manager because old add-on not present: " + oldID);
      return;
    }

    addon.syncGUID = newID;
  }
/**
   * Changes the id of an add-on.
   *
   * This implements a core API of the store.
   */
Changes the id of an add-on.
This implements a core API of the store.
Changes the id of an add - on . This implements a core API of the store .
function changeItemID(oldID, newID) {
    let state = this.reconciler.getAddonStateFromSyncGUID(oldID);
    if (state) {
      state.guid = newID;
      let cb = Async.makeSpinningCallback();
      this.reconciler.saveState(null, cb);
      cb.wait();
    }
    let addon = this.getAddonByGUID(oldID);
    if (!addon) {
      this._log.debug("Cannot change item ID (" + oldID + ") in Add-on " +
                      "Manager because old add-on not present: " + oldID);
      return;
    }
    addon.syncGUID = newID;
  }
function changeItemID ( oldID , newID ) { let state = this . reconciler . getAddonStateFromSyncGUID ( oldID ) ; if ( state ) { state . guid = newID ; let cb = Async . makeSpinningCallback ( ) ; this . reconciler . saveState ( null , cb ) ; cb . wait ( ) ; } let addon = this . getAddonByGUID ( oldID ) ; if ( ! addon ) { this . _log . debug ( "Cannot change item ID (" + oldID + ") in Add-on " + "Manager because old add-on not present: " + oldID ) ; return ; } addon . syncGUID = newID ; }
Changes the id of an add-on.
Changes the id of an add - on .
// We always update the GUID in the reconciler because it will be // referenced later in the sync process.