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

Unified Diff: third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.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/AutoplayUmaHelper.cpp
diff --git a/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp b/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp
index 410dcc50e41ceff3d8ab904d199a1d7c02fe58e0..3ee04e501e9d8e8d5d844233be1bd302951f4e72 100644
--- a/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp
+++ b/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp
@@ -111,7 +111,8 @@ void AutoplayUmaHelper::OnAutoplayInitiated(AutoplaySource source) {
RuntimeEnabledFeatures::autoplayMutedVideosEnabled()) {
bool data_saver_enabled =
element_->GetDocument().GetSettings() &&
- element_->GetDocument().GetSettings()->GetDataSaverEnabled();
+ element_->GetDocument().GetSettings()->GetDataSaverFlag() ==
+ WebDataSaverFlag::kEnabled;
bool blocked_by_setting =
!element_->GetAutoplayPolicy().IsAutoplayAllowedPerSettings();

Powered by Google App Engine
This is Rietveld 408576698