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

Unified Diff: Source/core/testing/Internals.cpp

Issue 1179223002: Implement autoplay gesture override experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Refactored into AutoplayExperimentHelper. Created 5 years, 4 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
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 981b7c9143119ef885b49b9ea5f0d3ab908a0531..a207f461713a4e0089ca5140096814ee50280395 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -2484,4 +2484,9 @@ void Internals::forceRestrictIFramePermissions()
RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true);
}
+void Internals::triggerAutoplayViewportCheck(HTMLMediaElement* element)
+{
+ element->m_autoplayHelper.viewportTimerFired(0);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698