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

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

Issue 1329853004: Include viewport visibility checks for autoplay experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@autoplay_step1
Patch Set: Created 5 years, 3 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 e0fdde4cc835917eb589aeb9cef54351b0100322..fc65e3522a78138cb1c6d5cb9f41d014a3cf0987 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -2488,4 +2488,9 @@ void Internals::forceRestrictIFramePermissions()
RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true);
}
+void Internals::triggerAutoplayViewportCheck(HTMLMediaElement* element)
+{
+ element->triggerAutoplayViewportCheck();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698