Internal QUICHE change

PiperOrigin-RevId: 300418158
Change-Id: Ie943d604f60538606a816f396f9d9ea154950943
diff --git a/quic/core/congestion_control/bbr_sender.cc b/quic/core/congestion_control/bbr_sender.cc
index 4627b19..86493fc 100644
--- a/quic/core/congestion_control/bbr_sender.cc
+++ b/quic/core/congestion_control/bbr_sender.cc
@@ -422,6 +422,9 @@
   if (sample.last_packet_send_state.is_valid) {
     last_sample_is_app_limited_ = sample.last_packet_send_state.is_app_limited;
     has_non_app_limited_sample_ |= !last_sample_is_app_limited_;
+    if (stats_) {
+      stats_->has_non_app_limited_sample = has_non_app_limited_sample_;
+    }
   }
   if (!sample.sample_is_app_limited ||
       sample.sample_max_bandwidth > max_bandwidth_.GetBest()) {
diff --git a/quic/core/quic_connection_stats.h b/quic/core/quic_connection_stats.h
index 0edb7ba..911ea6d 100644
--- a/quic/core/quic_connection_stats.h
+++ b/quic/core/quic_connection_stats.h
@@ -130,6 +130,9 @@
   // Whether overshooting is detected (and pacing rate decreases) during start
   // up with network parameters adjusted.
   bool overshooting_detected_with_network_parameters_adjusted = false;
+
+  // Whether there is any non app-limited bandwidth sample.
+  bool has_non_app_limited_sample = false;
 };
 
 }  // namespace quic