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 4fc3f313b399e8816502e37f3f6b185583a1104d..92f9d5af4b30000717932f3028f73257d423a49d 100644 |
--- a/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp |
+++ b/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp |
@@ -83,7 +83,7 @@ void AutoplayExperimentHelper::playMethodCalled() |
// Having this set is okay. |
m_playPending = true; |
- if (!UserGestureIndicator::processingUserGesture()) { |
+ if (!UserGestureIndicator::utilizeUserGesture()) { |
autoplayMediaEncountered(); |
if (isEligible()) { |
@@ -121,7 +121,7 @@ void AutoplayExperimentHelper::pauseMethodCalled() |
void AutoplayExperimentHelper::loadMethodCalled() |
{ |
- if (UserGestureIndicator::processingUserGesture() && isUserGestureRequiredForPlay()) { |
+ if (isUserGestureRequiredForPlay() && UserGestureIndicator::utilizeUserGesture()) { |
recordAutoplayMetric(AutoplayEnabledThroughLoad); |
removeUserGestureRequirement(GesturelessPlaybackEnabledByLoad); |
} |