B2G/gecko/toolkit/mozapps/extensions/XPIProvider.jsm
/**
   * Gets a boolean preference.
   *
   * @param  aName
   *         The name of the preference
   * @param  aDefaultValue
   *         A value to return if the preference does not exist
   * @return the value of the preference or aDefaultValue if there is none
   */
Gets a boolean preference.
@param  aName
The name of the preference
@param  aDefaultValue
A value to return if the preference does not exist
@return the value of the preference or aDefaultValue if there is none
Gets a boolean preference . @param aName The name of the preference @param aDefaultValue A value to return if the preference does not exist @return the value of the preference or aDefaultValue if there is none
function Prefs_getBoolPref(aName, aDefaultValue) {
    try {
      return Services.prefs.getBoolPref(aName);
    }
    catch (e) {
    }
    return aDefaultValue;
  }
function Prefs_getBoolPref ( aName , aDefaultValue ) { try { return Services . prefs . getBoolPref ( aName ) ; } catch ( e ) { } return aDefaultValue ; }
Gets a boolean preference.
Gets a boolean preference .