Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 1938443002: Allow muted third-party autoplay with -ormuted experiment option. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed unused flag. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/html/AutoplayExperimentTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index 15b0b6a3a4d8464b870101ba7b78ed4310b004a3..6f671e71d5116dfde81e0463dcd4c48b10e8b261 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -303,6 +303,7 @@ public:
bool muted() const override { return m_element->muted(); }
void setMuted(bool muted) override { m_element->setMuted(muted); }
void playInternal() override { m_element->playInternal(); }
+ void pauseInternal() override { m_element->pauseInternal(); }
bool isLockedPendingUserGesture() const override { return m_element->isLockedPendingUserGesture(); }
void unlockUserGesture() override { m_element->unlockUserGesture(); }
void recordAutoplayMetric(AutoplayMetrics metric) override { m_element->recordAutoplayMetric(metric); }
@@ -2252,6 +2253,7 @@ void HTMLMediaElement::setMuted(bool muted)
return;
m_muted = muted;
+ m_autoplayHelper->mutedChanged();
updateVolume();
« no previous file with comments | « third_party/WebKit/Source/core/html/AutoplayExperimentTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698