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

Unified Diff: content/browser/service_worker/embedded_worker_instance.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/browser/service_worker/embedded_worker_instance.cc
diff --git a/content/browser/service_worker/embedded_worker_instance.cc b/content/browser/service_worker/embedded_worker_instance.cc
index 92351588d6b265e9c88b9093d1bb694b352c3e74..ea6560afa7630d53de72accbe09a580733b50a0c 100644
--- a/content/browser/service_worker/embedded_worker_instance.cc
+++ b/content/browser/service_worker/embedded_worker_instance.cc
@@ -363,7 +363,7 @@ class EmbeddedWorkerInstance::StartTask {
// TODO(bengr): Support changes to this setting while the worker
// is running.
- params->settings.data_saver_enabled = settings.data_saver_enabled;
+ params->settings.data_saver_flag = settings.data_saver_flag;
TRACE_EVENT_NESTABLE_ASYNC_BEGIN0("ServiceWorker",
"REGISTERING_TO_DEVTOOLS", instance_);

Powered by Google App Engine
This is Rietveld 408576698