search_(isRecent, account, origins) {
      const params = [
        new HttpParam('connection_status', 'ALL'),
        new HttpParam('client', 'chrome'), new HttpParam('use_cdd', 'true')
      ];
      if (isRecent) {
        params.push(new HttpParam('q', '^recent'));
      }
      origins.forEach(function(origin) {
        const cpRequest = this.buildRequest_(
            'GET', 'search', params, origin, account,
            this.onSearchDone_.bind(this, isRecent));
        this.outstandingCloudSearchRequests_.push(cpRequest);
        this.sendOrQueueRequest_(cpRequest);
      }, this);
    }
/**
     * Sends Google Cloud Print search API requests.
     * @param {boolean} isRecent Whether to search for only recently used
     *     printers.
     * @param {string} account Account the search is sent for. It matters for
     *     COOKIES origin only, and can be empty (sent on behalf of the primary
     *     user in this case).
     * @param {!Array<!print_preview.DestinationOrigin>} origins Origins to
     *     search printers for.
     * @private
     */
Sends Google Cloud Print search API requests.
@param {boolean} isRecent Whether to search for only recently used
printers.
@param {string} account Account the search is sent for. It matters for
COOKIES origin only, and can be empty (sent on behalf of the primary
user in this case).
@param {!Array} origins Origins to
search printers for.
@private
Sends Google Cloud Print search API requests . @param { boolean } isRecent Whether to search for only recently used printers . @param { string } account Account the search is sent for . It matters for COOKIES origin only and can be empty ( sent on behalf of the primary user in this case ) . @param { !Array } origins Origins to search printers for . @private
search_(isRecent, account, origins) {
      const params = [
        new HttpParam('connection_status', 'ALL'),
        new HttpParam('client', 'chrome'), new HttpParam('use_cdd', 'true')
      ];
      if (isRecent) {
        params.push(new HttpParam('q', '^recent'));
      }
      origins.forEach(function(origin) {
        const cpRequest = this.buildRequest_(
            'GET', 'search', params, origin, account,
            this.onSearchDone_.bind(this, isRecent));
        this.outstandingCloudSearchRequests_.push(cpRequest);
        this.sendOrQueueRequest_(cpRequest);
      }, this);
    }
search_ ( isRecent , account , origins ) { const params = [ new HttpParam ( 'connection_status' , 'ALL' ) , new HttpParam ( 'client' , 'chrome' ) , new HttpParam ( 'use_cdd' , 'true' ) ] ; if ( isRecent ) { params . push ( new HttpParam ( 'q' , '^recent' ) ) ; } origins . forEach ( function ( origin ) { const cpRequest = this . buildRequest_ ( 'GET' , 'search' , params , origin , account , this . onSearchDone_ . bind ( this , isRecent ) ) ; this . outstandingCloudSearchRequests_ . push ( cpRequest ) ; this . sendOrQueueRequest_ ( cpRequest ) ; } , this ) ; }
Sends Google Cloud Print search API requests.
Sends Google Cloud Print search API requests .