B2G/gecko/services/sync/modules/policies.js
/**
   * Call sync() if Master Password is not locked.
   *
   * Otherwise, reschedule a sync for later.
   */
Call sync() if Master Password is not locked.
Otherwise, reschedule a sync for later.
Call sync () if Master Password is not locked . Otherwise reschedule a sync for later .
function syncIfMPUnlocked() {
    if (Status.login == MASTER_PASSWORD_LOCKED &&
        Utils.mpLocked()) {
      this._log.debug("Not initiating sync: Login status is " + Status.login);
      this._log.trace("Scheduling a sync at MASTER_PASSWORD_LOCKED_RETRY_INTERVAL");
      this.scheduleAtInterval(MASTER_PASSWORD_LOCKED_RETRY_INTERVAL);
      return;
    }
    Utils.nextTick(Weave.Service.sync, Weave.Service);
  }
function syncIfMPUnlocked ( ) { if ( Status . login == MASTER_PASSWORD_LOCKED && Utils . mpLocked ( ) ) { this . _log . debug ( "Not initiating sync: Login status is " + Status . login ) ; this . _log . trace ( "Scheduling a sync at MASTER_PASSWORD_LOCKED_RETRY_INTERVAL" ) ; this . scheduleAtInterval ( MASTER_PASSWORD_LOCKED_RETRY_INTERVAL ) ; return ; } Utils . nextTick ( Weave . Service . sync , Weave . Service ) ; }
Call sync() if Master Password is not locked.
Call sync () if Master Password is not locked .
// No point if we got kicked out by the master password dialog. // If we're not syncing now, we need to schedule the next one.