processProgress_(progress) {
    if (progress.status == ProgressStatus.IN_PROGRESS) {
      this.progressTaskToken_ =
          setTimeout(this.progressTask_.bind(this), progressBarDelayMs);
      return;
    }
    if (progress.status == ProgressStatus.SUCCEEDED) {
      this.close();
      return;
    }
    if (progress.status == ProgressStatus.FAILED_WRITE_FAILED) {
      this.exportErrorMessage =
          this.i18n('exportPasswordsFailTitle', progress.folderName);
      this.switchToDialog_(States.ERROR);
      return;
    }
  }
/**
   * Prepares and displays the appropriate view (with delay, if necessary).
   * @param {!PasswordManagerProxy.PasswordExportProgress} progress
   * @private
   */
Prepares and displays the appropriate view (with delay, if necessary).
Prepares and displays the appropriate view ( with delay if necessary ) .
processProgress_(progress) {
    if (progress.status == ProgressStatus.IN_PROGRESS) {
      this.progressTaskToken_ =
          setTimeout(this.progressTask_.bind(this), progressBarDelayMs);
      return;
    }
    if (progress.status == ProgressStatus.SUCCEEDED) {
      this.close();
      return;
    }
    if (progress.status == ProgressStatus.FAILED_WRITE_FAILED) {
      this.exportErrorMessage =
          this.i18n('exportPasswordsFailTitle', progress.folderName);
      this.switchToDialog_(States.ERROR);
      return;
    }
  }
processProgress_ ( progress ) { if ( progress . status == ProgressStatus . IN_PROGRESS ) { this . progressTaskToken_ = setTimeout ( this . progressTask_ . bind ( this ) , progressBarDelayMs ) ; return ; } if ( progress . status == ProgressStatus . SUCCEEDED ) { this . close ( ) ; return ; } if ( progress . status == ProgressStatus . FAILED_WRITE_FAILED ) { this . exportErrorMessage = this . i18n ( 'exportPasswordsFailTitle' , progress . folderName ) ; this . switchToDialog_ ( States . ERROR ) ; return ; } }
Prepares and displays the appropriate view (with delay, if necessary).
Prepares and displays the appropriate view ( with delay if necessary ) .