| Index: third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp b/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp
|
| index 80ead256c3e68e9c3b13db9a8171fbf7799cfa95..0d917bcbf0214b84ca07d2989bad1c3fcd21dfc8 100644
|
| --- a/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp
|
| +++ b/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp
|
| @@ -301,6 +301,10 @@ bool AutoplayExperimentHelper::isEligible() const
|
| if (m_mode == Mode::ExperimentOff)
|
| return false;
|
|
|
| + // If autoplay is disabled, no one is eligible.
|
| + if (!client().isAutoplayAllowedPerSettings())
|
| + return false;
|
| +
|
| // If no user gesture is required, then the experiment doesn't apply.
|
| // This is what prevents us from starting playback more than once.
|
| // Since this flag is never set to true once it's cleared, it will block
|
|
|