Index: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp |
index ccb47ded8016c42793c6b84e3ad340e55ba98c06..d6ad51206cd4337211da7a762bbd10fbcc016755 100644 |
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp |
@@ -55,6 +55,7 @@ |
#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/heap/Handle.h" |
#include "platform/heap/Persistent.h" |
+#include "platform/loader/fetch/ResourceFetcher.h" |
#include "platform/loader/fetch/ResourceResponse.h" |
#include "platform/network/ContentSecurityPolicyParsers.h" |
#include "platform/weborigin/KURL.h" |
@@ -338,8 +339,10 @@ void WebSharedWorkerImpl::OnScriptLoaderFinished() { |
->DataSource() |
->GetServiceWorkerNetworkProvider()); |
DCHECK(web_worker_fetch_context); |
- // TODO(horo): Set more information about the context (ex: DataSaverEnabled) |
- // to |web_worker_fetch_context|. |
+ web_worker_fetch_context->SetAppCacheHostID( |
+ document->Fetcher()->Context().ApplicationCacheHostID()); |
+ web_worker_fetch_context->SetDataSaverEnabled( |
+ document->GetFrame()->GetSettings()->GetDataSaverEnabled()); |
ProvideWorkerFetchContextToWorker(worker_clients, |
std::move(web_worker_fetch_context)); |
} |