B2G/gecko/services/sync/modules/util.js
// Return whether the system is unlocked.
Return whether the system is unlocked.
Return whether the system is unlocked .
function ensureMPUnlocked() {
    if (!Utils.mpLocked()) {
      return true;
    }
    let sdr = Cc["@mozilla.org/security/sdr;1"]
                .getService(Ci.nsISecretDecoderRing);
    try {
      sdr.encryptString("bacon");
      return true;
    } catch(e) {}
    return false;
  }
function ensureMPUnlocked ( ) { if ( ! Utils . mpLocked ( ) ) { return true ; } let sdr = Cc [ "@mozilla.org/security/sdr;1" ] . getService ( Ci . nsISecretDecoderRing ) ; try { sdr . encryptString ( "bacon" ) ; return true ; } catch ( e ) { } return false ; }
Return whether the system is unlocked.
Return whether the system is unlocked .