handleResponse = (result, error) => {
      if (marker != this.lastRefreshToken_) return;  // Superseded.
      if (error && typeof retryAttempt === 'number' &&
          retryAttempt < this.MAX_RETRY_COUNT_) {
        goog.Timer.callOnce(
            goog.bind(this.refresh_, this, retryAttempt + 1),
            2 * ee.data.Profiler.DELAY_BEFORE_REFRESH_);
        return;
      }
      this.profileError_ = error || null;
      this.profileData_ =
          error ? ee.data.Profiler.getEmptyProfile_(this.format_) : result;
      this.lastRefreshToken_ = null;
      this.dispatchEvent(ee.data.Profiler.EventType.STATE_CHANGED);
      this.dispatchEvent(ee.data.Profiler.EventType.DATA_CHANGED);
    }
@param{?Object|undefined} result Object obtained from getProfiles.
@param{string=} error Error message returned on failure.