| Index: third_party/WebKit/Source/modules/exported/WebEmbeddedWorkerImpl.cpp
|
| diff --git a/third_party/WebKit/Source/modules/exported/WebEmbeddedWorkerImpl.cpp b/third_party/WebKit/Source/modules/exported/WebEmbeddedWorkerImpl.cpp
|
| index dd2347cb4207dca8749a7cd2e8eef846bdb80a38..e61847db4914b3528de515b91868280a005e0a7f 100644
|
| --- a/third_party/WebKit/Source/modules/exported/WebEmbeddedWorkerImpl.cpp
|
| +++ b/third_party/WebKit/Source/modules/exported/WebEmbeddedWorkerImpl.cpp
|
| @@ -46,13 +46,11 @@
|
| #include "core/loader/WorkerFetchContext.h"
|
| #include "core/probe/CoreProbes.h"
|
| #include "core/workers/ParentFrameTaskRunners.h"
|
| -#include "core/workers/WorkerClients.h"
|
| #include "core/workers/WorkerContentSettingsClient.h"
|
| #include "core/workers/WorkerGlobalScope.h"
|
| #include "core/workers/WorkerInspectorProxy.h"
|
| #include "core/workers/WorkerScriptLoader.h"
|
| #include "core/workers/WorkerThreadStartupData.h"
|
| -#include "modules/indexeddb/IndexedDBClientImpl.h"
|
| #include "modules/serviceworkers/ServiceWorkerContainerClient.h"
|
| #include "modules/serviceworkers/ServiceWorkerGlobalScopeClientImpl.h"
|
| #include "modules/serviceworkers/ServiceWorkerGlobalScopeProxy.h"
|
| @@ -82,6 +80,8 @@
|
|
|
| namespace blink {
|
|
|
| +template class MODULES_EXPORT WorkerClientsInitializer<WebEmbeddedWorkerImpl>;
|
| +
|
| WebEmbeddedWorker* WebEmbeddedWorker::Create(
|
| WebServiceWorkerContextClient* client,
|
| WebContentSettingsClient* content_settings_client) {
|
| @@ -410,10 +410,10 @@ void WebEmbeddedWorkerImpl::StartWorkerThread() {
|
| SecurityOrigin* starter_origin = document->GetSecurityOrigin();
|
|
|
| WorkerClients* worker_clients = WorkerClients::Create();
|
| + WorkerClientsInitializer<WebEmbeddedWorkerImpl>::Run(worker_clients);
|
| +
|
| ProvideContentSettingsClientToWorker(worker_clients,
|
| std::move(content_settings_client_));
|
| - ProvideIndexedDBClientToWorker(worker_clients,
|
| - IndexedDBClientImpl::Create(*worker_clients));
|
| ProvideServiceWorkerGlobalScopeClientToWorker(
|
| worker_clients,
|
| ServiceWorkerGlobalScopeClientImpl::Create(*worker_context_client_));
|
|
|