B2G/gecko/services/healthreport/policy.jsm
/**
   * Start background polling for activity.
   *
   * This will set up a recurring timer that will periodically check if
   * activity is warranted.
   *
   * You typically call this function for each constructed instance.
   */
Start background polling for activity.
This will set up a recurring timer that will periodically check if
activity is warranted.

You typically call this function for each constructed instance.
Start background polling for activity . This will set up a recurring timer that will periodically check if activity is warranted . You typically call this function for each constructed instance .
function startPolling() {
    this.stopPolling();
    this._timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
    this._timer.initWithCallback({
      notify: function notify() {
        this.checkStateAndTrigger();
      }.bind(this)
    }, this.POLL_INTERVAL_MSEC, this._timer.TYPE_REPEATING_SLACK);
  }
function startPolling ( ) { this . stopPolling ( ) ; this . _timer = Cc [ "@mozilla.org/timer;1" ] . createInstance ( Ci . nsITimer ) ; this . _timer . initWithCallback ( { notify : function notify ( ) { this . checkStateAndTrigger ( ) ; } . bind ( this ) } , this . POLL_INTERVAL_MSEC , this . _timer . TYPE_REPEATING_SLACK ) ; }
Start background polling for activity.
Start background polling for activity .