0
Commit Graph

940 Commits

Author SHA1 Message Date
Philipp Hancke
694b3dcff6 webrtc-internals: show direction in folded sdp m= line
truncated example:
  m=video 9 UDP/TLS/RTP/SAVPF 96 97 (121 more lines) direction=sendrecv mid=0
Not done for the session part where the direction is not commonly shown

BUG=None

Change-Id: Ibb6843a7a0d2d6a5ed27e4c1beb55762bee194af
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6274163
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1421159}
2025-02-17 14:45:24 -08:00
Emil Vardar
bfe644a7fd Add new graph for corruption probability / corruption measurements.
Bug: webrtc:358039777
Change-Id: I56466098d6985a631a843ad88db2d71f954d4df0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6249837
Commit-Queue: Emil Vardar (xWF) <vardar@google.com>
Reviewed-by: Erik Språng <sprang@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1419840}
2025-02-13 05:52:55 -08:00
Emil Vardar
18237f8426 Plot average value in an interval instead of the latest value.
There might exists more than 1 data point in `stepSize` interval in
`dataPoints_`. Old code was taking the last value to plot. However, this
might cause some of the critical values to disappear. Therefore, instead
of the last value we now take the average of the values in the interval.

Main reason for this change is for detection corruptions. See the child
change.

Tested manually by running
https://emilvardar98.github.io/simulcast-playground.html and checking
the graphs.

Bug: None
Change-Id: I7f1906b3c6d229bacdcb6a2e6465f18a25f72d64
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6249678
Reviewed-by: Erik Språng <sprang@chromium.org>
Commit-Queue: Emil Vardar (xWF) <vardar@google.com>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1419795}
2025-02-13 03:33:52 -08:00
Henrik Boström
483b132312 Fix webrtc-internals estimatedPlayoutTimestamp offset issue.
According to spec and implementation, this timestamp (unlike all the
other timestamps in getStats), is expressed in "NTP clock time", which
means an epoch of 1900 instead of 1970 as the Date constructor in
chrome://webrtc-internals/ expects in the DateCalculator.

The fix is to add an offset for this, and only this, timestamp.

Verified fix manually using the steps outlined in
https://crbug.com/392424843#comment5

Bug: 392424843
Change-Id: I31eefb190170951a036d68e97df55ae324bece30
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6239656
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Commit-Queue: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1418037}
2025-02-10 02:54:26 -08:00
Lei Zhang
a8d5beb257 Update base::FilePath::StringPieceType usage outside of //base
Replace StringPieceType with StringViewType, since base::StringPiece has
been replaced by std::string_view.

Change-Id: I22826fb9df1a71d4ec1fadecaef969db52971d3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6235785
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Auto-Submit: Lei Zhang <thestig@chromium.org>
Owners-Override: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1416425}
2025-02-05 13:18:29 -08:00
dpapad
7519382161 WebUI: Leverage build_webui() in chrome://webrtc-internals.
This is in preparation of removing a JS minification step happening
within Grit on Android builds, as Grit should not be responsible for
performing minification.

Bug: 340278433
Change-Id: I5f6a1df8b24a34be3b806c137419546b7c628d1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6147566
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1402576}
2025-01-06 12:10:02 -08:00
Georg Neis
35ff854b7e Remove Lacros leftovers from content/browser, part 2
Main changes:
- Replace IS_CHROMEOS_ASH with the equivalent IS_CHROMEOS
- Remove obsolete build flag includes/dependencies

Bug: b:354842935
AX-Relnotes: n/a.
Change-Id: I079b003a4664a7a3f7281905323611b6fc4fe3da
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6090635
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1397108}
2024-12-16 18:02:08 -08:00
Arthur Sonzogni
d5ce01f7ef C++11 std::array rewrite for memory safety [11/19]
Split from:
https://chromium-review.googlesource.com/c/chromium/src/+/6004959

Generated patch
---------------
- Tool: ./tool/clang/spanify/rewrite-multiple-platform.sh
- Platform: Linux.
- Filter: This includes 2400/4222 patches. I included the std::array
      ones and excluded build errors.

Google announcement:
--------------------
https://groups.google.com/a/google.com/g/chrome-memory-safety/c/RMiO4gaVLQA/m/Yz-3NCObAgAJ

Benchmarks:
----------
See design doc and
https://chromium-review.googlesource.com/c/chromium/src/+/6004959/21

Description
-----------
The consensus during the memory safety summit was to begin rewriting
relevant C-style arrays to C++11 std::array. It can be done immediately,
offers better developer ergonomics, and fix large chunks of the
-Wunsafe-buffer-usage errors in Chrome.

To clarify, this effort is complementary to the longer plan work with
enabling -fsanitize=array-bounds, and we plan to leverage both,
especially for protecting 3p code.

[Attached] is a document detailing the rationale, benefits, and
considerations for potential compile-time and performance impacts.

[Attached]:https://docs.google.com/document/d/1z5aBDg26lHmNDjXRCysElWKx7E4PAJXqykI_k7ondJI/edit?tab=t.0#heading=h.cqgo7wvp0kzt

NO_IFTTT=No need to update base/debug/stack_trace.h

Bug: 378069401
Change-Id: I6d36543c267f12c672cce00d75cf833fff238ebf
R: dcheng@chromium.org
AX-Relnotes: n/a.
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6039265
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1395908}
2024-12-13 05:35:28 -08:00
Georg Neis
0dce333643 Remove Lacros leftovers from content/browser, part 1
Main changes:
- Remove IS_CHROMEOS_LACROS code
- Remove Lacros references from comments

Bug: b:365742770
AX-Relnotes: n/a.
Change-Id: I17a5d33d42845d2d566912a518d088073892372e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6090534
Commit-Queue: Georg Neis <neis@chromium.org>
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1395719}
2024-12-12 17:51:18 -08:00
Emily Andrews
d15fd76ecb Change RenderProcessHost::GetID to RenderProcessHost::GetDeprecatedID
This change bulk changes RenderProcessHost::GetID to
RenderProcessHost::GetDeprecatedID to support the transition to a
strongly typed ChildProcessId.

Bug: 379869738
Change-Id: Ib0c991536486ef29702ea166cdcf12ea68ed70ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6065543
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Owners-Override: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Emily Andrews <emiled@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1394500}
2024-12-10 20:41:54 +00:00
Sunggook Chue
ef9bf0f4cf When stopping or disabling a remote audio track, do not disable clones.
Cloned audio tracks in WebRTC share the same track interface as
the original track, which serves as the source of the stream.

When the track interface is disabled through a single audio track,
it affects all tracks that share the same interface.

The solution is to remove this dependency on the shared track interface
when disabling or stopping an individual track.

Bug: 40849402
Change-Id: Ib4c54337cd10797449e856b420396038a45d30da
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6052891
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Commit-Queue: Sunggook Chue <sunggch@microsoft.com>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1394493}
2024-12-10 20:32:14 +00:00
Sida Zhu
2b19e69c99 Video: [MediaRecorder] Only support hvc1.<profile>.<profile_compatibility>.<tier and level>.*
Based on conversation with Chrome Media Team, we should only
support valid mimetype for future new codecs, and drop the
legacy usage of `hvc1`.

Bug: 40276507
Change-Id: I69680bd85dc56b99595268b9d21663058125fa14
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6064058
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Sida Zhu <zhusida@bytedance.com>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1391370}
2024-12-04 00:35:17 +00:00
Peter Kasting
5f6928c30b Remove usage of base::make_span(): content/browser/ part 2
Replace with span() CTAD use, or more targeted helpers.

Bug: 341907909
Change-Id: I702c8a532172bc9dfa3610cdb8c0dcf3730810c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6059285
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1389907}
2024-11-29 21:25:11 +00:00
Kevin McNee
10ce46f37b Disable two WebRTC tests on Mac for flakiness
WebRtcMediaRecorderTest.PeerConnection
fast/peerconnection/RTCPeerConnection-many.html

Bug: 40187300, 378680890
Change-Id: I27fb7fcf1ed54c68ac9ed3c912385b88d6e3310d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6054662
Auto-Submit: Kevin McNee <mcnee@chromium.org>
Commit-Queue: Kevin McNee <mcnee@chromium.org>
Owners-Override: Kevin McNee <mcnee@google.com>
Reviewed-by: Frank Liberato <liberato@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1388987}
2024-11-27 19:21:02 +00:00
Philipp Hancke
f0edbc9119 Remove obsolete WebRTC IP permission check flag
since the feature shipped long ago (2019?)

BUG=None

Change-Id: Ia112b0ed90082c6dbf70a8a789d62eb5ce6184b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6040000
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1386141}
2024-11-21 10:13:29 +00:00
Philipp Hancke
3de7f1b818 Remove legacy getStats vestiges from PeerConnectionTracker
BUG=40090820

Change-Id: I37efbcfd4193a3b63996f8b6ae07b65580acd8f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6008766
Reviewed-by: Dominic Farolino <dom@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1382486}
2024-11-13 18:59:49 +00:00
Sida Zhu
346fa142b8 Reland "Video: Make MediaRecorder.isTypeSupported() can reflect platform HEVC support"
No code change compared with the original CL, since
crbug.com/377684694 macOS 11/12 test failure has already
been fixed by crrev.com/c/6002792

This is a reland of commit 8b41580749

Original change's description:
> Video: Make `MediaRecorder.isTypeSupported()` can reflect platform HEVC support
>
> With `media::IsEncoderSupportedVideoType()`, we now
> can know if HEVC platform encoding is available or
> not synchronously.
>
> This CL wires `MediaRecorderHandler` with this method,
> guarantee user the accurate result. Also add related
> GPU content browser test for this.
>
> Bug: 40276507
> Change-Id: I422ee97982ac4620a88f80dbce156348d4aebaa6
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5986751
> Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
> Reviewed-by: Markus Handell <handellm@google.com>
> Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
> Commit-Queue: Sida Zhu <zhusida@bytedance.com>
> Cr-Commit-Position: refs/heads/main@{#1378664}

Bug: 40276507
Change-Id: Iac6932931d8212243d6d64cf9a1361d633067526
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6002393
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Markus Handell <handellm@google.com>
Commit-Queue: Sida Zhu <zhusida@bytedance.com>
Cr-Commit-Position: refs/heads/main@{#1380350}
2024-11-08 14:40:13 +00:00
Dale Curtis
a8c90b1240 Revert "[Sheriff] Disable flaky Webrtc tests"
This reverts commit 4f5a536d0e.

Reason for revert: Culprit was reverted https://chromium-review.googlesource.com/c/chromium/src/+/6000653

Original change's description:
> [Sheriff] Disable flaky Webrtc tests
>
> Bug: 377684694
> Change-Id: I48548afdab1d154cc09ef991790d108e8eb7f4bc
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5999265
> Reviewed-by: Elias Klim <elklm@chromium.org>
> Owners-Override: Ravjit Uppal <ravjit@google.com>
> Auto-Submit: Ravjit Uppal <ravjit@chromium.org>
> Commit-Queue: Elias Klim <elklm@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1379088}

Fixed: 377684694
Change-Id: Ifcdcd9f13879c8dc803af3593b06a14c0eb964b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6001174
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Auto-Submit: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1379530}
2024-11-07 08:49:20 +00:00
Sean Maher
2e7cd3a847 Revert "Video: Make MediaRecorder.isTypeSupported() can reflect platform HEVC support"
This reverts commit 8b41580749.

Reason for revert: Mac11/Mac12 Tests broken:
https://ci.chromium.org/ui/p/chromium/builders/ci/Mac12%20Tests
https://ci.chromium.org/ui/p/chromium/builders/ci/Mac11%20Tests

Not sure what is wrong, but causing segfaults flakily possibly on all tests.


Original change's description:
> Video: Make `MediaRecorder.isTypeSupported()` can reflect platform HEVC support
>
> With `media::IsEncoderSupportedVideoType()`, we now
> can know if HEVC platform encoding is available or
> not synchronously.
>
> This CL wires `MediaRecorderHandler` with this method,
> guarantee user the accurate result. Also add related
> GPU content browser test for this.
>
> Bug: 40276507
> Change-Id: I422ee97982ac4620a88f80dbce156348d4aebaa6
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5986751
> Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
> Reviewed-by: Markus Handell <handellm@google.com>
> Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
> Commit-Queue: Sida Zhu <zhusida@bytedance.com>
> Cr-Commit-Position: refs/heads/main@{#1378664}

Bug: 40276507
Change-Id: Ifa1f3a53a0a245e2b9762534dbb24feb57fff868
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6000653
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Sean Maher <spvw@chromium.org>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Auto-Submit: Sean Maher <spvw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1379124}
2024-11-06 18:32:27 +00:00
Ravjit
4f5a536d0e [Sheriff] Disable flaky Webrtc tests
Bug: 377684694
Change-Id: I48548afdab1d154cc09ef991790d108e8eb7f4bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5999265
Reviewed-by: Elias Klim <elklm@chromium.org>
Owners-Override: Ravjit Uppal <ravjit@google.com>
Auto-Submit: Ravjit Uppal <ravjit@chromium.org>
Commit-Queue: Elias Klim <elklm@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1379088}
2024-11-06 17:45:00 +00:00
Sida Zhu
8b41580749 Video: Make MediaRecorder.isTypeSupported() can reflect platform HEVC support
With `media::IsEncoderSupportedVideoType()`, we now
can know if HEVC platform encoding is available or
not synchronously.

This CL wires `MediaRecorderHandler` with this method,
guarantee user the accurate result. Also add related
GPU content browser test for this.

Bug: 40276507
Change-Id: I422ee97982ac4620a88f80dbce156348d4aebaa6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5986751
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: Markus Handell <handellm@google.com>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Sida Zhu <zhusida@bytedance.com>
Cr-Commit-Position: refs/heads/main@{#1378664}
2024-11-05 22:46:11 +00:00
Elly
ca24689570 gardener: disable one WebRTC test
Specifically, this test disables
WebRtcVideoCaptureServiceEnumerationBrowserTest.
RemoveVirtualDeviceAfterItHasBeenEnumerated, which is failing frequently
on the win11-arm64-dbg-tests bot.

Bug: 352092989
Change-Id: I2e134453b183eab6434cc503b2dd166a4bdee9d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5983473
Auto-Submit: Elly FJ <ellyjones@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Owners-Override: Elly FJ <ellyjones@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1377548}
2024-11-04 11:35:33 +00:00
Peter Boström
fc7ddc185b Migrate to NOTREACHED() in content/
NOTREACHED() and NOTREACHED_IN_MIGRATION() are both CHECK-fatal now.
The former is [[noreturn]] so this CL also performs dead-code removal
after the NOTREACHED().

This CL does not attempt to do additional rewrites of any surrounding
code, like:

if (!foo) {
  NOTREACHED();
}

to CHECK(foo);

Those transforms take a non-trivial amount of time (and there are
thousands of instances). Cleanup can be left as an exercise for the
reader.

This does clean up kCrashOnDanglingBrowserContext as both paths of the
kill switch are currently fatal. This has been rolled out for a long
time.

Bug: 40580068, 40062641
Change-Id: Ib88e710d003e2e48df3fc502ca54d2341d157a0e
Cq-Include-Trybots: luci.chromium.try:linux-dcheck-off-rel
Low-Coverage-Reason: OTHER Should-be-unreachable code
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5974816
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Auto-Submit: Peter Boström <pbos@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1376522}
2024-10-31 19:37:21 +00:00
Peter Kasting
294250dd48 More deep-const-correctness for base::SharedMemoryMapping subtypes.
The code touched here wasn't consistent in its use of const, but
generally used it in a shallow-const fashion where even vending write
access to a block of memory could be done via a const method.

This causes problems when trying to enforce stricter lifetime checks on
writable spans, because either the code gets confused about whether the
accesses are read-only (it tries to look for the constness of the
returned pointers and can't figure out what to do if things don't
match everywhere) or it thinks something unsafe or non-sane is happening
(write access to rvalues makes no sense, for example, but read access
might in the context of a short-lived call).

Instead consistently model deep constness, which is compliant with
Chrome's style rules on const and fixes all these issues. Mostly, this
means changing const members/ref args to non-const ones.

Bug: 372381413
Change-Id: I2735c52fbf0f32b813055cbb46f7c15b09eb025f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5939406
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Fred Shih <ffred@chromium.org>
Reviewed-by: Alex Gough <ajgo@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1373012}
2024-10-23 23:14:39 +00:00
Helmut Januschka
a3cf92a41d use std::optional base::GetFileSize() in //content
Bug: 371234479
Change-Id: Ic324561e0c6fd20d85e5895fb45c89ca5866876a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5905147
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Owners-Override: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Eric Seckler <eseckler@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1370248}
2024-10-17 21:09:58 +00:00
Steven Luong
b2b1995519 Disable VerifyCanvasCaptureWebGLFrames test
This test is seen flaking on the
linux-blink-web-tests-force-accessibility-rel bot and have historically
flaked on other platforms as well.

Bug: 40846825
Change-Id: Ib461b619efbeb07db36ad8367ec2e5e691e1a4b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5926211
Reviewed-by: thefrog <thefrog@chromium.org>
Commit-Queue: Steven Luong <stluong@chromium.org>
Commit-Queue: thefrog <thefrog@chromium.org>
Auto-Submit: Steven Luong <stluong@chromium.org>
Owners-Override: Steven Luong <stluong@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1367688}
2024-10-11 19:20:51 +00:00
Ioana Pandele
b40c558fe5 [Gardener] Disable flaky WebRTC capture test on Android
Test: WebRtcCaptureFromElementBrowserTest.VerifyCanvasCaptureWebGLFrame

Bug: 362833242
Change-Id: I33bf9a6d938f8145f5dac34f8a4a778f3f21cf49
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5890804
Reviewed-by: Ivana Žužić <izuzic@google.com>
Commit-Queue: Ioana Pandele <ioanap@chromium.org>
Owners-Override: Ioana Pandele <ioanap@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1359842}
2024-09-25 09:49:31 +00:00
Philipp Hancke
5eabb08daf webrtc-internals: show url and relayProtocol (if present) for local candidates
previously it showed url for srflx candidates and only relayProtocol for relay candidates

BUG=None

Change-Id: I6e7b89cd6f89f8d22477f900ad3d43644c721808
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5810791
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Cr-Commit-Position: refs/heads/main@{#1349643}
2024-09-01 15:07:39 +00:00
Ian Wells
834a87e4a0 [gardening] Disable flaky test
Bug: 361123384
Change-Id: I6b67bc334e6fbf89f1969b28bc5dae128d00be66
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5800978
Auto-Submit: Ian Wells <iwells@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1344405}
2024-08-20 21:39:16 +00:00
Philipp Hancke
f28f0401d4 webrtc-internal: calculate totalProcessingDelay divided by jitterBufferEmittedCount
which is applicable to both video and audio

BUG=webrtc:344347965

Change-Id: I0a92d914a4b53e6f2cb579bfb1187a3d433ea4ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5762917
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Cr-Commit-Position: refs/heads/main@{#1339049}
2024-08-08 14:25:13 +00:00
Tony Herre
32eca75cc2 Return error when VideoSourceProvider::GetSourceInfos doesn't complete
Previously VideoSourceProviderImpl::GetSourceInfos would return an empty
list of cameras if the response callback was destroyed without being
called, as if that was the correct result. This still returns an empty
list, so there's no change in behaviour for code which doesn't check the
result.

We still don't actually propagate it all the way up to eg the
enumerateDevices call in JS, but at least we will log in Chrome that it
failed, retry and increment histograms with the true result.

Bug: 348159730
Change-Id: Id7be563a5854507b3f15c404d80cac26747a57eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5666787
Reviewed-by: Palak Agarwal <agpalak@chromium.org>
Reviewed-by: Polina Bondarenko <pbond@chromium.org>
Reviewed-by: Mark Foltz <mfoltz@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Commit-Queue: Tony Herre <toprice@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1333450}
2024-07-26 09:57:27 +00:00
Elly
7b865af5ed ui: remove SelectFile params argument
This change removes the params argument to
ui::SelectFileDialog::SelectFile() and removes the value of it passed at
every call site (which is nullptr everywhere).

Bug: 340178601
Change-Id: I9b14fee48491f86e0c5a062245885a691056ef78
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5714494
Reviewed-by: Nathan Memmott <memmott@chromium.org>
Reviewed-by: Joe Downing <joedow@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Auto-Submit: Elly FJ <ellyjones@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Elly FJ <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1331407}
2024-07-22 23:05:54 +00:00
Jan Keitel
3ce8766a66 [Gardener] Disable flaky WebRtcVideoCaptureServiceEnumerationBrowserTest.
Bug: 352672009
Change-Id: If280e04498e6cb3509b4658ab0db449dbdcbd380
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5701105
Auto-Submit: Jan Keitel <jkeitel@google.com>
Commit-Queue: Jan Keitel <jkeitel@google.com>
Owners-Override: Jan Keitel <jkeitel@google.com>
Reviewed-by: Bruno Braga <brunobraga@google.com>
Commit-Queue: Bruno Braga <brunobraga@google.com>
Cr-Commit-Position: refs/heads/main@{#1326617}
2024-07-12 08:13:19 +00:00
Lei Zhang
a6aac9da5a Use provided CommandLine in SetupCommandLine() in //content
Tests that override SetupCommandLine() already get the CommandLine as a
method argument. There is no need to call
base::CommandLine::ForCurrentProcess(). Consistently use the argument
instead.

Change-Id: I4643babbce672ceb304a14318cc0c3d73761e407
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5691228
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1325737}
2024-07-10 20:59:38 +00:00
Elly
b4b57fa2b5 ui::SelectFile: deprecate params
This change:
1. Marks ui::SelectFile::Listener's params argument as deprecated
2. Adds new virtuals to ui::SelectFile::Listener that do not take
   a params argument
3. Replaces every subclass override which doesn't use the params
   argument with overrides that don't take a params argument at all

This will allow refactoring the remaining subclasses that do use params
individually, ultimately allowing for:

4. Removing all remaining overrides of the variants that take parameters
5. Removing all call sites of those variants
6. Removing the variants themselves and the params argument from
   ui::SelectFile

Bug: 340178601
Change-Id: Id876295714bd0c853506cc258b33e7d1886f1b94
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5659974
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Elly FJ <ellyjones@chromium.org>
Reviewed-by: Joe Downing <joedow@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1322222}
2024-07-02 16:17:40 +00:00
Philipp Hancke
dada2a59d8 webrtc-internals: show relayProtocol for onicecandiate
shown in the unexpanded view as well

BUG=None

Change-Id: I87870b5caaf4cff5eee01b14b7921ec31f5bf3e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5651615
Reviewed-by: Palak Agarwal <agpalak@chromium.org>
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1322142}
2024-07-02 13:51:01 +00:00
Anders Hartvoll Ruud
59ec320a93 [gardener] InvalidSourceIdInIFrameAndCloseInFailureCb is flaky on Linux
Example: https://ci.chromium.org/ui/p/chromium/builders/ci/linux-blink-web-tests-force-accessibility-rel/26835

Bug: 40180532
Change-Id: Iaefc8dc563aedd3acf9cfd9808b59b76fb24f6a2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5664657
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Owners-Override: Anders Hartvoll Ruud <andruud@google.com>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1321584}
2024-07-01 09:13:10 +00:00
Saifuddin Hitawala
d8f35cc468 [media] Remove SharedImageBufferHandleSet::texture_target
Remove texture_target param from SharedImageBufferHandleSet as it should
always use that from shared image.

Bug: None
Change-Id: I95059859a7d85485196d725ebfd1dbe7b649142a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5608295
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Commit-Queue: Saifuddin Hitawala <hitawala@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1314045}
2024-06-12 16:24:30 +00:00
Philipp Hancke
c68bc70cd7 webrtc-internals: make somethingId clickable in stats tables
webrtc-stats follow a pattern where a property ending with "Id"
is a pointer to another object in the results. This way the stats
graph can be traversed. This CL adds support for webrtc-internals
to make these members clickable as (internal) hyperlinks

BUG=chromium:345091933

Change-Id: I45dd6eb66e3789cde0c2907e68659655472ae107
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5599954
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Cr-Commit-Position: refs/heads/main@{#1312763}
2024-06-10 14:47:05 +00:00
Nasko Oskov
ee48dfb4fa Prepare to remove //content/ from unsafe_bufers_paths.txt
Suppress unsafe buffer usage on a file-by-file basis.  Out of
approximately 5850 .cc and .h files only roughly 160 files fail
compilation with the unsafe buffers warning.

Suppress only, by inserting boilerplate into affected files. Do not
re-write any code to work around the issues. Properly fixing each file
will be done in follow-up CLs.

//content/ is not removed from unsafe_bufers_paths.txt file and will be
also done as a follow-up, so it makes potential reverts simpler.

Bug: 342213636
Change-Id: I4a936e63dea95a78951f7bfae6d5487708ae3c0b
AX-Relnotes: n/a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5608913
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Nasko Oskov <nasko@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1312393}
2024-06-08 05:13:06 +00:00
Saifuddin Hitawala
5340cdd605 [media] Use single ExportedSharedImage inside SharedImageBufferHandleSet
With multiplanar shared image for hardware decode launched, we can
change the array<gpu::ExportedSharedImage> in SharedImageBufferHandleSet
to take a single gpu::ExportedSharedImage. This change updates mojom
and relevant callsites that use it.

Bug: 332564976
Change-Id: I8cdf9626be1aa5a9a829d32f9712702e0c053a4c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5593229
Commit-Queue: Saifuddin Hitawala <hitawala@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Brendon Tiszka <tiszka@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1310590}
2024-06-05 13:59:18 +00:00
Philipp Hancke
06f9f8b33a webrtc-internals: do not plot lastPacket(Sent|Received)Timestamp
since by itself this is not a useful graph.

BUG=None

Change-Id: Ia9c068c63b107372d21f7fc7de0be14f491576e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5549291
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Cr-Commit-Position: refs/heads/main@{#1305034}
2024-05-23 13:33:23 +00:00
Peter Boström
188188db8b Migrate most remaining NOTREACHED()
This s/NOTREACHED()/NOTREACHED_IN_MIGRATION() for most of remaining
src/. Then I went through all changes and made sure that we didn't do
this for comments or "NOTREACHED(): " log strings.

Rolling in the corresponding change for remaining third_party/crashpad
is separately up for review.

Bug: 40580068
Low-Coverage-Reason: TRIVIAL_CHANGE Unreachable code is not reachable.
Change-Id: I707e582b710bf65474db2e3477fa06f5b8d8ea06
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5545807
Owners-Override: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1302866}
2024-05-17 21:35:58 +00:00
Peter Boström
8472105d01 Use NOTREACHED_IN_MIGRATION() in content/
This was generated by replacing "  NOTREACHED()" with
"  NOTREACHED_IN_MIGRATION()" and running git cl format.

This prepares for making NOTREACHED() [[noreturn]] alongside
NotReachedIsFatal migration of existing inventory.

Bug: 40580068
Change-Id: I3b48b89911ac5e9ffcb211622992f917f8f9e8d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5539619
Auto-Submit: Peter Boström <pbos@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Owners-Override: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1301096}
2024-05-15 04:36:02 +00:00
Alison Gale
770f3fce37 Migrate TODOs referencing old crbug IDs to the new issue tracker IDs
The canonical bug format is TODO(crbug.com/<id>). TODOs of the
following forms will all be migrated to the new format:

- TODO(crbug.com/<old id>)
- TODO(https://crbug.com/<old id>)
- TODO(crbug/<old id>)
- TODO(crbug/monorail/<old id>)
- TODO(<old id>)
- TODO(issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/u/1/issues/<old id>)
- TODO(bugs.chromium.org/<old id>)

Bug id mapping is sourced from go/chrome-on-buganizer-prod-issues.
See go/crbug-todo-migration for details.

#crbug-todo-migration

Bug: b/321899722
Change-Id: Ibc66b8c440e4bcdef414e77fef4d9874d2ea9951
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5493800
Auto-Submit: Alison Gale <agale@chromium.org>
Commit-Queue: Alison Gale <agale@chromium.org>
Reviewed-by: Peter Boström <pbos@chromium.org>
Owners-Override: Alison Gale <agale@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1293330}
2024-04-27 00:39:58 +00:00
Mingjing Zhang
e80051b68b Use SharedImageBufferHandleSet in TextureDeviceExerciser
As part of the ClientSharedImage refactoring, this CL replaces the
usage of MailboxBufferHandleSet in WebRTC video capture service browser
test with SharedImageBufferHandleSet.

Bug: 1494911
Change-Id: Ie51609db7c7001b5be26d5e703ca912010e3b05c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5463433
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Commit-Queue: Mingjing Zhang <mjzhang@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1291443}
2024-04-23 18:27:32 +00:00
Alison Gale
923a33e9d5 Migrate TODOs referencing old crbug IDs to the new issue tracker IDs
The canonical bug format is TODO(crbug.com/<id>). TODOs of the
following forms will all be migrated to the new format:

- TODO(crbug.com/<old id>)
- TODO(https://crbug.com/<old id>)
- TODO(crbug/<old id>)
- TODO(crbug/monorail/<old id>)
- TODO(<old id>)
- TODO(issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/u/1/issues/<old id>)
- TODO(bugs.chromium.org/<old id>)

Bug id mapping is sourced from go/chrome-on-buganizer-prod-issues.
See go/crbug-todo-migration for details.

#crbug-todo-migration

Bug: b/321899722
Change-Id: Ib028de8bb63c99e5a81d90e24e422cf88061ad05
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5469583
Owners-Override: Alison Gale <agale@chromium.org>
Reviewed-by: Darryl James <dljames@chromium.org>
Commit-Queue: Alison Gale <agale@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1290952}
2024-04-22 23:34:28 +00:00
Alison Gale
81f4f2c793 Migrate TODOs referencing old crbug IDs to the new issue tracker IDs
The canonical bug format is TODO(crbug.com/<id>). TODOs of the
following forms will all be migrated to the new format:

- TODO(crbug.com/<old id>)
- TODO(https://crbug.com/<old id>)
- TODO(crbug/<old id>)
- TODO(crbug/monorail/<old id>)
- TODO(<old id>)
- TODO(issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/u/1/issues/<old id>)
- TODO(bugs.chromium.org/<old id>)

Bug id mapping is sourced from go/chrome-on-buganizer-prod-issues.
See go/crbug-todo-migration for details.

#crbug-todo-migration

Bug: b/321899722
Change-Id: Iee14d10d544e9f0ec046117cc4ec8a55c427adc0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5469947
Reviewed-by: Darryl James <dljames@chromium.org>
Owners-Override: Alison Gale <agale@chromium.org>
Commit-Queue: Alison Gale <agale@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1290838}
2024-04-22 19:33:31 +00:00
Alison Gale
59c007a7ad Migrate TODOs referencing old crbug IDs to the new issue tracker IDs
The canonical bug format is TODO(crbug.com/<id>). TODOs of the
following forms will all be migrated to the new format:

- TODO(crbug.com/<old id>)
- TODO(https://crbug.com/<old id>)
- TODO(crbug/<old id>)
- TODO(crbug/monorail/<old id>)
- TODO(<old id>)
- TODO(issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/u/1/issues/<old id>)
- TODO(bugs.chromium.org/<old id>)

Bug id mapping is sourced from go/chrome-on-buganizer-prod-issues.
See go/crbug-todo-migration for details.

#crbug-todo-migration

Bug: b/321899722
Change-Id: Ifd155bbeff882ea939f74cf8b8f847f42847940b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5468156
Reviewed-by: Darryl James <dljames@chromium.org>
Owners-Override: Alison Gale <agale@chromium.org>
Commit-Queue: Alison Gale <agale@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1290297}
2024-04-20 03:05:40 +00:00
Alison Gale
47d1537de7 Migrate TODOs referencing old crbug IDs to the new issue tracker IDs
The canonical bug format is TODO(crbug.com/<id>). TODOs of the
following forms will all be migrated to the new format:

- TODO(crbug.com/<old id>)
- TODO(https://crbug.com/<old id>)
- TODO(crbug/<old id>)
- TODO(crbug/monorail/<old id>)
- TODO(<old id>)
- TODO(issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/u/1/issues/<old id>)
- TODO(bugs.chromium.org/<old id>)

Bug id mapping is sourced from go/chrome-on-buganizer-prod-issues.
See go/crbug-todo-migration for details.

#crbug-todo-migration

Bug: b/321899722
Change-Id: Ieeb461e2d489e86fd50b87a2a0721a2be34520c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5467317
Owners-Override: Alison Gale <agale@chromium.org>
Commit-Queue: Darryl James <dljames@chromium.org>
Commit-Queue: Alison Gale <agale@chromium.org>
Reviewed-by: Darryl James <dljames@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1290198}
2024-04-19 21:31:46 +00:00