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

Unified Diff: third_party/WebKit/Source/core/html/AutoplayExperimentHelper.h

Issue 1850903002: Enable user gesture requirement for autoplay experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/core/html/AutoplayExperimentHelper.h
diff --git a/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.h b/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.h
index 8db55f9e4f450e0a44ace99e665b489d81435cc2..ee05829aad9eea5b05fb7287af9e02a729fbd854 100644
--- a/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.h
+++ b/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.h
@@ -151,6 +151,10 @@ public:
void playbackStopped();
void initialPlayWithUserGesture();
+ // Returns true if and only if any experiment is enabled (i.e., |m_mode|
+ // is not ExperimentOff).
+ bool isExperimentEnabled();
+
// Clean up. For Oilpan, this means "early in HTMLMediaElement's dispose".
// For non-Oilpan, just delete the object.
void dispose();

Powered by Google App Engine
This is Rietveld 408576698