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

Unified Diff: third_party/WebKit/Source/web/DedicatedWorkerMessagingProxyProviderImpl.cpp

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: third_party/WebKit/Source/web/DedicatedWorkerMessagingProxyProviderImpl.cpp
diff --git a/third_party/WebKit/Source/web/DedicatedWorkerMessagingProxyProviderImpl.cpp b/third_party/WebKit/Source/web/DedicatedWorkerMessagingProxyProviderImpl.cpp
index 798c9f1113c714277a7fb5d5b177de6c8e470325..8ec552b5e0cf1f4dc0039f969c9271f67cc9a913 100644
--- a/third_party/WebKit/Source/web/DedicatedWorkerMessagingProxyProviderImpl.cpp
+++ b/third_party/WebKit/Source/web/DedicatedWorkerMessagingProxyProviderImpl.cpp
@@ -77,8 +77,8 @@ DedicatedWorkerMessagingProxyProviderImpl::CreateWorkerMessagingProxy(
DCHECK(web_worker_fetch_context);
// TODO(horo): Set more information about the context (ex:
// AppCacheHostID) to |web_worker_fetch_context|.
- web_worker_fetch_context->SetDataSaverEnabled(
- document->GetFrame()->GetSettings()->GetDataSaverEnabled());
+ web_worker_fetch_context->SetDataSaverFlag(
+ document->GetFrame()->GetSettings()->GetDataSaverFlag());
ProvideWorkerFetchContextToWorker(worker_clients,
std::move(web_worker_fetch_context));
}

Powered by Google App Engine
This is Rietveld 408576698