function userCanChangeEnablement(item) {
    // User doesn't have permission.
    if (!item.userMayModify)
      return false;
    // Item is forcefully disabled.
    if (item.disableReasons.corruptInstall ||
        item.disableReasons.suspiciousInstall ||
        item.disableReasons.updateRequired) {
      return false;
    }
    // An item with dependent extensions can't be disabled (it would bork the
    // dependents).
    if (item.dependentExtensions.length > 0)
      return false;
    // Blacklisted can't be enabled, either.
    if (item.state == chrome.developerPrivate.ExtensionState.BLACKLISTED)
      return false;

    return true;
  }
/**
   * Returns true if the user can change whether or not the extension is
   * enabled.
   * @param {!chrome.developerPrivate.ExtensionInfo} item
   * @return {boolean}
   */
Returns true if the user can change whether or not the extension is
enabled.
@param {!chrome.developerPrivate.ExtensionInfo} item
@return {boolean}
Returns true if the user can change whether or not the extension is enabled . @param { !chrome . developerPrivate . ExtensionInfo } item @return { boolean }
function userCanChangeEnablement(item) {
    if (!item.userMayModify)
      return false;
    if (item.disableReasons.corruptInstall ||
        item.disableReasons.suspiciousInstall ||
        item.disableReasons.updateRequired) {
      return false;
    }
    if (item.dependentExtensions.length > 0)
      return false;
    if (item.state == chrome.developerPrivate.ExtensionState.BLACKLISTED)
      return false;
    return true;
  }
function userCanChangeEnablement ( item ) { if ( ! item . userMayModify ) return false ; if ( item . disableReasons . corruptInstall || item . disableReasons . suspiciousInstall || item . disableReasons . updateRequired ) { return false ; } if ( item . dependentExtensions . length > 0 ) return false ; if ( item . state == chrome . developerPrivate . ExtensionState . BLACKLISTED ) return false ; return true ; }
Returns true if the user can change whether or not the extension is
 enabled.
Returns true if the user can change whether or not the extension is enabled .
// User doesn't have permission. // Item is forcefully disabled. // An item with dependent extensions can't be disabled (it would bork the // dependents). // Blacklisted can't be enabled, either.