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

Unified Diff: content/renderer/shared_worker/embedded_shared_worker_stub.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
Index: content/renderer/shared_worker/embedded_shared_worker_stub.cc
diff --git a/content/renderer/shared_worker/embedded_shared_worker_stub.cc b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
index 778cd36c454a134f051e097184821bff790aad13..1677713d39e68f9900851103d9e8ed4e659c1e7f 100644
--- a/content/renderer/shared_worker/embedded_shared_worker_stub.cc
+++ b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
@@ -127,7 +127,8 @@ EmbeddedSharedWorkerStub::EmbeddedSharedWorkerStub(
blink::WebContentSecurityPolicyType security_policy_type,
blink::WebAddressSpace creation_address_space,
bool pause_on_start,
- int route_id)
+ int route_id,
+ bool data_saver_enabled)
: route_id_(route_id), name_(name), url_(url) {
RenderThreadImpl::current()->AddEmbeddedWorkerRoute(route_id_, this);
impl_ = blink::WebSharedWorker::Create(this);
@@ -141,7 +142,7 @@ EmbeddedSharedWorkerStub::EmbeddedSharedWorkerStub(
impl_->StartWorkerContext(
url, blink::WebString::FromUTF16(name_),
blink::WebString::FromUTF16(content_security_policy),
- security_policy_type, creation_address_space);
+ security_policy_type, creation_address_space, data_saver_enabled);
}
EmbeddedSharedWorkerStub::~EmbeddedSharedWorkerStub() {

Powered by Google App Engine
This is Rietveld 408576698