chore: cherry-pick f9add3b8e5 from chromium. #27443
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MediaCapabilities: Use threadsafe static wtf::String
This replaces DEFINE_THREAD_SAFE_STATIC_LOCAL(const String, ...).
StringImpl ref counting (behind that macro) is not currently threadsafe.
(cherry picked from commit f9add3b8e53c440129f7be4a181a22c440e856bc)
Bug: 1160534
Change-Id: I70f4aa796aaefabbee36db4fcdf0fbf0defe4959
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2606399
Commit-Queue: Chrome Cunningham chcunningham@chromium.org
Reviewed-by: Jeremy Roman jbroman@chromium.org
Auto-Submit: Chrome Cunningham chcunningham@chromium.org
Cr-Original-Commit-Position: refs/heads/master@{#839863}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2611646
Reviewed-by: Chrome Cunningham chcunningham@chromium.org
Cr-Commit-Position: refs/branch-heads/4324@{#1460}
Cr-Branched-From: c73b5a651d37a6c4d0b8e3262cc4015a5579c6c8-refs/heads/master@{#827102}
Release Notes
Notes: backported the fix to chromium:1160534.