sendOrQueueRequest_(request) {
      if (request.origin == print_preview.DestinationOrigin.COOKIES) {
        this.sendRequest_(request);
        return;
      }

      if (this.accessTokenRequestPromise_ == null) {
        this.accessTokenRequestPromise_ =
            this.nativeLayer_.getAccessToken(request.origin);
      }

      this.accessTokenRequestPromise_.then(
          this.onAccessTokenReady_.bind(this, request));
    }
/**
     * Sends a request to the Google Cloud Print API or queues if it needs to
     *     wait OAuth2 access token.
     * @param {!cloudprint.CloudPrintRequest} request Request to send or queue.
     * @private
     */
Sends a request to the Google Cloud Print API or queues if it needs to
wait OAuth2 access token.
@param {!cloudprint.CloudPrintRequest} request Request to send or queue.
@private
Sends a request to the Google Cloud Print API or queues if it needs to wait OAuth2 access token . @param { !cloudprint . CloudPrintRequest } request Request to send or queue . @private
sendOrQueueRequest_(request) {
      if (request.origin == print_preview.DestinationOrigin.COOKIES) {
        this.sendRequest_(request);
        return;
      }
      if (this.accessTokenRequestPromise_ == null) {
        this.accessTokenRequestPromise_ =
            this.nativeLayer_.getAccessToken(request.origin);
      }
      this.accessTokenRequestPromise_.then(
          this.onAccessTokenReady_.bind(this, request));
    }
sendOrQueueRequest_ ( request ) { if ( request . origin == print_preview . DestinationOrigin . COOKIES ) { this . sendRequest_ ( request ) ; return ; } if ( this . accessTokenRequestPromise_ == null ) { this . accessTokenRequestPromise_ = this . nativeLayer_ . getAccessToken ( request . origin ) ; } this . accessTokenRequestPromise_ . then ( this . onAccessTokenReady_ . bind ( this , request ) ) ; }
Sends a request to the Google Cloud Print API or queues if it needs to
     wait OAuth2 access token.
Sends a request to the Google Cloud Print API or queues if it needs to wait OAuth2 access token .