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

Unified Diff: third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp

Issue 2881073003: Support DataSaver for SharedWorker (Closed)
Patch Set: fix #include "public/web/WebDataSaverFlag.h" Created 3 years, 7 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/media/AutoplayPolicy.cpp
diff --git a/third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp b/third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp
index b068dd92e3ba16c6d3de7e19801bc0a6032726ba..de781b91fe9bcc470498a490a8fc031e98bebcb8 100644
--- a/third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp
+++ b/third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp
@@ -250,7 +250,8 @@ bool AutoplayPolicy::IsGestureNeededForPlaybackIfPendingUserGestureIsLocked()
if (element_->IsHTMLVideoElement() && element_->muted() &&
RuntimeEnabledFeatures::autoplayMutedVideosEnabled() &&
!(element_->GetDocument().GetSettings() &&
- element_->GetDocument().GetSettings()->GetDataSaverEnabled()) &&
+ element_->GetDocument().GetSettings()->GetDataSaverFlag() ==
+ WebDataSaverFlag::kEnabled) &&
!(element_->GetDocument().GetSettings() &&
element_->GetDocument()
.GetSettings()

Powered by Google App Engine
This is Rietveld 408576698