commit 70a9186bc5684e9bfda47810683098f1b2b4714f
parent 22e5e0a639b7bb36bb2a450d86e115e25b0c3744
Author: Dan Baker <dbaker@mozilla.com>
Date: Thu, 23 Oct 2025 16:53:28 -0600
Bug 1995393 - Vendor libwebrtc from c74662219c
Upstream commit: https://webrtc.googlesource.com/src/+/c74662219c05c60ade3de6100fe1baca0cee4355
Use injected clock in rtc_stats_collector
Stops using the global clock methods from time_utils.
This CL was uploaded by an experimental version of git cl split
(https://crbug.com/389069356).
R=danilchap@webrtc.org, hta@webrtc.org
Bug: webrtc:42223992
Change-Id: Iea5c298a50d99a51e23c37268405b709b1573c92
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/404963
Auto-Submit: Evan Shrubsole <eshr@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45366}
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/third_party/libwebrtc/README.mozilla.last-vendor b/third_party/libwebrtc/README.mozilla.last-vendor
@@ -1,4 +1,4 @@
# ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc --commit mozpatches libwebrtc
-libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-23T22:50:47.856457+00:00.
+libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-23T22:53:16.109179+00:00.
# base of lastest vendoring
-9f8cbef761
+c74662219c
diff --git a/third_party/libwebrtc/pc/rtc_stats_collector.cc b/third_party/libwebrtc/pc/rtc_stats_collector.cc
@@ -1207,7 +1207,7 @@ void RTCStatsCollector::GetStatsReportInternal(
requests_.push_back(std::move(request));
// "Now" using a monotonically increasing timer.
- int64_t cache_now_us = TimeMicros();
+ int64_t cache_now_us = env_.clock().TimeInMicroseconds();
if (cached_report_ &&
cache_now_us - cache_timestamp_us_ <= cache_lifetime_us_) {
// We have a fresh cached report to deliver. Deliver asynchronously, since