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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.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/loader/FrameFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
index 28e92f6497b9a63c1abb065165322d8af81f7673..2b5f830f7b8785caa508ab7f4d100dc9fc21f81c 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -224,7 +224,8 @@ void FrameFetchContext::AddAdditionalRequestHeaders(ResourceRequest& request,
request.ClearHTTPHeaderField("Save-Data");
if (GetFrame()->GetSettings() &&
- GetFrame()->GetSettings()->GetDataSaverEnabled())
+ GetFrame()->GetSettings()->GetDataSaverFlag() ==
+ WebDataSaverFlag::kEnabled)
request.SetHTTPHeaderField("Save-Data", "on");
}

Powered by Google App Engine
This is Rietveld 408576698