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

Unified Diff: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp

Issue 2039773003: [Android] Added a runtime flag to enable autoplay of muted videos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
diff --git a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
index 420b3ff1ea476795f8c470b29a1ee7a2035129d3..09ee544f10a851d6db3b4f56e4de2807be1fc238 100644
--- a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
+++ b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
@@ -320,4 +320,9 @@ void WebRuntimeFeatures::enableScrollAnchoring(bool enable)
RuntimeEnabledFeatures::setScrollAnchoringEnabled(enable);
}
+void WebRuntimeFeatures::enableVideosAsImages(bool enable)
+{
+ RuntimeEnabledFeatures::setVideosAsImagesEnabled(enable);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698