| Index: third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp b/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp
|
| index 5fc56a2b056e249db05da4372a308268df3abefd..f35884ba50cd80e3eb39b2766b74f7eac198b166 100644
|
| --- a/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp
|
| +++ b/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp
|
| @@ -74,6 +74,21 @@ void AutoplayUmaHelper::onAutoplayInitiated(AutoplaySource source) {
|
| audioHistogram.count(static_cast<int>(m_source));
|
| }
|
|
|
| + // Record the child frame and top-level frame URLs for autoplay muted videos
|
| + // by attribute.
|
| + if (m_element->isHTMLVideoElement() && m_element->muted()) {
|
| + if (source == AutoplaySource::Attribute) {
|
| + Platform::current()->recordRapporURL(
|
| + "Media.Video.Autoplay.Muted.Attribute.Frame",
|
| + m_element->document().url());
|
| + } else {
|
| + DCHECK(source == AutoplaySource::Method);
|
| + Platform::current()->recordRapporURL(
|
| + "Media.Video.Autoplay.Muted.PlayMethod.Frame",
|
| + m_element->document().url());
|
| + }
|
| + }
|
| +
|
| // Record if it will be blocked by Data Saver or Autoplay setting.
|
| if (m_element->isHTMLVideoElement() && m_element->muted() &&
|
| RuntimeEnabledFeatures::autoplayMutedVideosEnabled()) {
|
|
|