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

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: rebased. 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 1527d8d552231c1e5c73273514ca122567a1d07d..2c8f334a93ffb07cc1a7bad99fe7d251ce10e308 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -2528,4 +2528,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