updateShouldKeepAlive_() {
    const newShouldKeepAlive = this.binaryMessageCount_ > 0 ||
        this.totalMessageSize_ > this.messageSizeKeepAliveThreshold_;
    if (newShouldKeepAlive != this.shouldKeepAlive_) {
      this.shouldKeepAlive_ = newShouldKeepAlive;
      this.providerManagerCallbacks_.requestKeepAlive(
          this.getStorageKey(), newShouldKeepAlive);
    }
  }
/**
   * Computes whether the extension should be kept alive, and informs the
   * Provider Manager if that value changed.
   * @private
   */
Computes whether the extension should be kept alive, and informs the
Provider Manager if that value changed.
@private
Computes whether the extension should be kept alive and informs the Provider Manager if that value changed . @private
updateShouldKeepAlive_() {
    const newShouldKeepAlive = this.binaryMessageCount_ > 0 ||
        this.totalMessageSize_ > this.messageSizeKeepAliveThreshold_;
    if (newShouldKeepAlive != this.shouldKeepAlive_) {
      this.shouldKeepAlive_ = newShouldKeepAlive;
      this.providerManagerCallbacks_.requestKeepAlive(
          this.getStorageKey(), newShouldKeepAlive);
    }
  }
updateShouldKeepAlive_ ( ) { const newShouldKeepAlive = this . binaryMessageCount_ > 0 || this . totalMessageSize_ > this . messageSizeKeepAliveThreshold_ ; if ( newShouldKeepAlive != this . shouldKeepAlive_ ) { this . shouldKeepAlive_ = newShouldKeepAlive ; this . providerManagerCallbacks_ . requestKeepAlive ( this . getStorageKey ( ) , newShouldKeepAlive ) ; } }
Computes whether the extension should be kept alive, and informs the
 Provider Manager if that value changed.
Computes whether the extension should be kept alive and informs the Provider Manager if that value changed .