Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
index 06b542b35315441d29edc68e7cd91fa9824c0c6f..7965bc76bc81d59a7af8716a8834d002b97cfd2f 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
@@ -2181,7 +2181,8 @@ WebMediaPlayer::Preload HTMLMediaElement::PreloadType() const { |
// If the source scheme is requires network, force preload to 'none' on Data |
// Saver and for low end devices. |
if (GetDocument().GetSettings() && |
- (GetDocument().GetSettings()->GetDataSaverEnabled() || |
+ (GetDocument().GetSettings()->GetDataSaverFlag() == |
+ WebDataSaverFlag::kEnabled || |
GetDocument().GetSettings()->GetForcePreloadNoneForMediaElements()) && |
(current_src_.Protocol() != "blob" && current_src_.Protocol() != "data" && |
current_src_.Protocol() != "file")) { |