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

Unified Diff: content/renderer/render_view_impl.cc

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: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 83640d7a96da178d57ffdfc0ce6824a0f7d3fdc7..b446f7085935aa3adf92fdeed0854b8e82a04fdf 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -839,7 +839,7 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
WebRuntimeFeatures::EnableXSLT(prefs.xslt_enabled);
settings->SetXSSAuditorEnabled(prefs.xss_auditor_enabled);
settings->SetDNSPrefetchingEnabled(prefs.dns_prefetching_enabled);
- settings->SetDataSaverEnabled(prefs.data_saver_enabled);
+ settings->SetDataSaverFlag(prefs.data_saver_flag);
settings->SetLocalStorageEnabled(prefs.local_storage_enabled);
settings->SetSyncXHRInDocumentsEnabled(prefs.sync_xhr_in_documents_enabled);
WebRuntimeFeatures::EnableDatabase(prefs.databases_enabled);

Powered by Google App Engine
This is Rietveld 408576698