B2G/gecko/services/healthreport/policy.jsm
/**
   * Record user acceptance of data submission policy.
   *
   * Data submission will not be allowed to occur until this is called.
   *
   * This is typically called through the `onUserAccept` property attached to
   * the promise passed to `onUserNotify` in the policy listener. But, it can
   * be called through other interfaces at any time and the call will have
   * an impact on future data submissions.
   *
   * @param reason
   *        (string) How the user accepted the data submission policy.
   */
Record user acceptance of data submission policy.
Data submission will not be allowed to occur until this is called.

This is typically called through the `onUserAccept` property attached to
the promise passed to `onUserNotify` in the policy listener. But, it can
be called through other interfaces at any time and the call will have
an impact on future data submissions.

@param reason
(string) How the user accepted the data submission policy.
Record user acceptance of data submission policy . Data submission will not be allowed to occur until this is called . This is typically called through the ` onUserAccept ` property attached to the promise passed to ` onUserNotify ` in the policy listener . But it can be called through other interfaces at any time and the call will have an impact on future data submissions . @param reason ( string ) How the user accepted the data submission policy .
function recordUserAcceptance(reason="no-reason") {
    this._log.info("User accepted data submission policy: " + reason);
    this.dataSubmissionPolicyResponseDate = this.now();
    this.dataSubmissionPolicyResponseType = "accepted-" + reason;
    this.dataSubmissionPolicyAccepted = true;
  }
function recordUserAcceptance ( reason = "no-reason" ) { this . _log . info ( "User accepted data submission policy: " + reason ) ; this . dataSubmissionPolicyResponseDate = this . now ( ) ; this . dataSubmissionPolicyResponseType = "accepted-" + reason ; this . dataSubmissionPolicyAccepted = true ; }
Record user acceptance of data submission policy.
Record user acceptance of data submission policy .