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

Unified Diff: content/browser/shared_worker/shared_worker_host.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/shared_worker/shared_worker_host.cc
diff --git a/content/browser/shared_worker/shared_worker_host.cc b/content/browser/shared_worker/shared_worker_host.cc
index 1ceb6c55cfbef3c0c29bffe7648d74c707a9c93b..ebee279aa8753bae10bbad0ac92998afaa85224c 100644
--- a/content/browser/shared_worker/shared_worker_host.cc
+++ b/content/browser/shared_worker/shared_worker_host.cc
@@ -82,6 +82,7 @@ void SharedWorkerHost::Start(bool pause_on_start) {
params.creation_address_space = instance_->creation_address_space();
params.pause_on_start = pause_on_start;
params.route_id = worker_route_id_;
+ params.data_saver_flag = instance_->data_saver_flag();
Send(new WorkerProcessMsg_CreateWorker(params));
for (const FilterInfo& info : filters_)

Powered by Google App Engine
This is Rietveld 408576698