handleResponse_(action, method, xhr) {
    return new Promise((resolve, reject) => {
      XhrUtils.logRawXhr(this.logger_, action, method, xhr);
      if (XhrUtils.isSuccess(xhr)) {
        resolve();
      } else {
        reject(Error(xhr.statusText));
      }
    });
  }
/**
   * Logs the given response and returns a Promise that resolves if it indicates
   * success.
   * @param {string} action Name of the operation that created the request.
   * @param {string} method The HTTP method.
   * @param {!XMLHttpRequest} xhr
   * @return {!Promise<void>} Resolves if the response indicates success,
   *     rejected otherwise.
   * @private
   */
Logs the given response and returns a Promise that resolves if it indicates
success.
@param {string} action Name of the operation that created the request.
@param {string} method The HTTP method.
@param {!XMLHttpRequest} xhr
@return {!Promise} Resolves if the response indicates success,
rejected otherwise.
@private
Logs the given response and returns a Promise that resolves if it indicates success . @param { string } action Name of the operation that created the request . @param { string } method The HTTP method . @param { !XMLHttpRequest } xhr @return { !Promise } Resolves if the response indicates success rejected otherwise . @private
handleResponse_(action, method, xhr) {
    return new Promise((resolve, reject) => {
      XhrUtils.logRawXhr(this.logger_, action, method, xhr);
      if (XhrUtils.isSuccess(xhr)) {
        resolve();
      } else {
        reject(Error(xhr.statusText));
      }
    });
  }
handleResponse_ ( action , method , xhr ) { return new Promise ( ( resolve , reject ) => { XhrUtils . logRawXhr ( this . logger_ , action , method , xhr ) ; if ( XhrUtils . isSuccess ( xhr ) ) { resolve ( ) ; } else { reject ( Error ( xhr . statusText ) ) ; } } ) ; }
Logs the given response and returns a Promise that resolves if it indicates
 success.
Logs the given response and returns a Promise that resolves if it indicates success .