| 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 9b2a552d4db9bebe7c47fb93db6efe6e10da3c87..b17b745657d74471dc20d3e7d396f4bac89afbc4 100644
|
| --- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
| @@ -56,6 +56,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"
|
| @@ -347,8 +348,11 @@ void WebSharedWorkerImpl::OnScriptLoaderFinished() {
|
| ->DataSource()
|
| ->GetServiceWorkerNetworkProvider());
|
| DCHECK(web_worker_fetch_context);
|
| - // TODO(horo): Set more information about the context (ex: AppCacheHostID)
|
| - // to |web_worker_fetch_context|.
|
| + web_worker_fetch_context->SetAppCacheHostID(main_frame_->GetFrame()
|
| + ->GetDocument()
|
| + ->Fetcher()
|
| + ->Context()
|
| + .ApplicationCacheHostID());
|
| web_worker_fetch_context->SetDataSaverEnabled(
|
| main_frame_->GetFrame()->GetSettings()->GetDataSaverEnabled());
|
| ProvideWorkerFetchContextToWorker(worker_clients,
|
|
|