| 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 7ba93126495ac0977de8a4e6e194d62f8e593c8a..798c9f1113c714277a7fb5d5b177de6c8e470325 100644
|
| --- a/third_party/WebKit/Source/web/DedicatedWorkerMessagingProxyProviderImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/DedicatedWorkerMessagingProxyProviderImpl.cpp
|
| @@ -31,6 +31,7 @@
|
| #include "web/DedicatedWorkerMessagingProxyProviderImpl.h"
|
|
|
| #include "core/dom/Document.h"
|
| +#include "core/frame/Settings.h"
|
| #include "core/frame/WebLocalFrameBase.h"
|
| #include "core/loader/WorkerFetchContext.h"
|
| #include "core/workers/DedicatedWorkerMessagingProxy.h"
|
| @@ -75,7 +76,9 @@ DedicatedWorkerMessagingProxyProviderImpl::CreateWorkerMessagingProxy(
|
| web_frame->Client()->CreateWorkerFetchContext();
|
| DCHECK(web_worker_fetch_context);
|
| // TODO(horo): Set more information about the context (ex:
|
| - // DataSaverEnabled) to |web_worker_fetch_context|.
|
| + // AppCacheHostID) to |web_worker_fetch_context|.
|
| + web_worker_fetch_context->SetDataSaverEnabled(
|
| + document->GetFrame()->GetSettings()->GetDataSaverEnabled());
|
| ProvideWorkerFetchContextToWorker(worker_clients,
|
| std::move(web_worker_fetch_context));
|
| }
|
|
|