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

Unified Diff: content/browser/shared_worker/shared_worker_service_impl.cc

Issue 2881073003: Support DataSaver for SharedWorker (Closed)
Patch Set: same as PS6 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
« no previous file with comments | « content/browser/shared_worker/shared_worker_instance_unittest.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/shared_worker/shared_worker_service_impl.cc
diff --git a/content/browser/shared_worker/shared_worker_service_impl.cc b/content/browser/shared_worker/shared_worker_service_impl.cc
index aa035f089f687ae1a5e4e67bfdbe42c025b392b6..d19cab1de359d9e0962c0e9cb06010382ece2088 100644
--- a/content/browser/shared_worker/shared_worker_service_impl.cc
+++ b/content/browser/shared_worker/shared_worker_service_impl.cc
@@ -335,7 +335,8 @@ blink::WebWorkerCreationError SharedWorkerServiceImpl::CreateWorker(
std::unique_ptr<SharedWorkerInstance> instance(new SharedWorkerInstance(
params.url, params.name, params.content_security_policy,
params.security_policy_type, params.creation_address_space,
- resource_context, partition_id, params.creation_context_type));
+ resource_context, partition_id, params.creation_context_type,
+ params.data_saver_enabled));
std::unique_ptr<SharedWorkerPendingInstance::SharedWorkerPendingRequest>
request(new SharedWorkerPendingInstance::SharedWorkerPendingRequest(
filter, route_id, params.document_id, filter->render_process_id(),
« no previous file with comments | « content/browser/shared_worker/shared_worker_instance_unittest.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698