Index: content/renderer/render_thread_impl.cc |
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc |
index 43eefcb8988766e64ee517f00152423646d38c92..67ee29d5d8ed732fd673d8b6c1814ef35e2d913c 100644 |
--- a/content/renderer/render_thread_impl.cc |
+++ b/content/renderer/render_thread_impl.cc |
@@ -375,8 +375,7 @@ void CreateFrameFactory(mojom::FrameFactoryRequest request) { |
} |
void SetupEmbeddedWorkerOnWorkerThread( |
- service_manager::mojom::InterfaceProviderRequest request, |
- service_manager::mojom::InterfaceProviderPtrInfo remote_interfaces) { |
+ mojom::ServiceWorkerEventDispatcherRequest request) { |
ServiceWorkerContextClient* client = |
ServiceWorkerContextClient::ThreadSpecificInstance(); |
// It is possible for client to be null if for some reason the worker died |
@@ -384,22 +383,19 @@ void SetupEmbeddedWorkerOnWorkerThread( |
// nothing and let mojo close the connection. |
if (!client) |
return; |
- client->BindInterfaceProviders(std::move(request), |
- mojo::MakeProxy(std::move(remote_interfaces))); |
+ client->BindEventDispatcher(std::move(request)); |
} |
class EmbeddedWorkerSetupImpl : public mojom::EmbeddedWorkerSetup { |
public: |
EmbeddedWorkerSetupImpl() = default; |
- void ExchangeInterfaceProviders( |
+ void AttachServiceWorkerEventDispatcher( |
int32_t thread_id, |
- service_manager::mojom::InterfaceProviderRequest request, |
- service_manager::mojom::InterfaceProviderPtr remote_interfaces) override { |
+ mojom::ServiceWorkerEventDispatcherRequest request) override { |
WorkerThreadRegistry::Instance()->GetTaskRunnerFor(thread_id)->PostTask( |
FROM_HERE, |
- base::Bind(&SetupEmbeddedWorkerOnWorkerThread, base::Passed(&request), |
- base::Passed(remote_interfaces.PassInterface()))); |
+ base::Bind(&SetupEmbeddedWorkerOnWorkerThread, base::Passed(&request))); |
} |
}; |