function updateUserDisabled(addon, value, callback) {
    if (addon.userDisabled == value) {
      callback(null, addon);
      return;
    }

    // A pref allows changes to the enabled flag to be ignored.
    if (Svc.Prefs.get("addons.ignoreUserEnabledChanges", false)) {
      this._log.info("Ignoring enabled state change due to preference: " +
                     addon.id);
      callback(null, addon);
      return;
    }

    AddonUtils.updateUserDisabled(addon, value, callback);
  }
/**
   * Update the userDisabled flag on an add-on.
   *
   * This will enable or disable an add-on and call the supplied callback when
   * the action is complete. If no action is needed, the callback gets called
   * immediately.
   *
   * @param addon
   *        Addon instance to manipulate.
   * @param value
   *        Boolean to which to set userDisabled on the passed Addon.
   * @param callback
   *        Function to be called when action is complete. Will receive 2
   *        arguments, a truthy value that signifies error, and the Addon
   *        instance passed to this function.
   */
Update the userDisabled flag on an add-on.
This will enable or disable an add-on and call the supplied callback when
the action is complete. If no action is needed, the callback gets called
immediately.

@param addon
Addon instance to manipulate.
@param value
Boolean to which to set userDisabled on the passed Addon.
@param callback
Function to be called when action is complete. Will receive 2
arguments, a truthy value that signifies error, and the Addon
instance passed to this function.
Update the userDisabled flag on an add - on . This will enable or disable an add - on and call the supplied callback when the action is complete . If no action is needed the callback gets called immediately . @param addon Addon instance to manipulate . @param value Boolean to which to set userDisabled on the passed Addon . @param callback Function to be called when action is complete . Will receive 2 arguments a truthy value that signifies error and the Addon instance passed to this function .
function updateUserDisabled(addon, value, callback) {
    if (addon.userDisabled == value) {
      callback(null, addon);
      return;
    }
    if (Svc.Prefs.get("addons.ignoreUserEnabledChanges", false)) {
      this._log.info("Ignoring enabled state change due to preference: " +
                     addon.id);
      callback(null, addon);
      return;
    }
    AddonUtils.updateUserDisabled(addon, value, callback);
  }
function updateUserDisabled ( addon , value , callback ) { if ( addon . userDisabled == value ) { callback ( null , addon ) ; return ; } if ( Svc . Prefs . get ( "addons.ignoreUserEnabledChanges" , false ) ) { this . _log . info ( "Ignoring enabled state change due to preference: " + addon . id ) ; callback ( null , addon ) ; return ; } AddonUtils . updateUserDisabled ( addon , value , callback ) ; }
Update the userDisabled flag on an add-on.
Update the userDisabled flag on an add - on .
// A pref allows changes to the enabled flag to be ignored.