| Index: content/browser/service_worker/embedded_worker_instance.cc
|
| diff --git a/content/browser/service_worker/embedded_worker_instance.cc b/content/browser/service_worker/embedded_worker_instance.cc
|
| index 727f2d548847080b097b6c2dbad2333621aace02..5d6b8eb654e303ea787697f6020426ad89aaffcc 100644
|
| --- a/content/browser/service_worker/embedded_worker_instance.cc
|
| +++ b/content/browser/service_worker/embedded_worker_instance.cc
|
| @@ -556,6 +556,7 @@ EmbeddedWorkerInstance::EmbeddedWorkerInstance(
|
| starting_phase_(NOT_STARTING),
|
| restart_count_(0),
|
| thread_id_(kInvalidEmbeddedWorkerThreadId),
|
| + instance_host_binding_(this),
|
| devtools_attached_(false),
|
| network_accessed_for_script_(false),
|
| weak_factory_(this) {}
|
| @@ -595,8 +596,13 @@ ServiceWorkerStatusCode EmbeddedWorkerInstance::SendStartWorker(
|
| std::unique_ptr<EmbeddedWorkerStartParams> params) {
|
| if (!context_)
|
| return SERVICE_WORKER_ERROR_ABORT;
|
| +
|
| + mojom::EmbeddedWorkerInstanceHostAssociatedPtrInfo host_ptr_info;
|
| + instance_host_binding_.Bind(&host_ptr_info);
|
| +
|
| DCHECK(pending_dispatcher_request_.is_pending());
|
| - client_->StartWorker(*params, std::move(pending_dispatcher_request_));
|
| + client_->StartWorker(*params, std::move(pending_dispatcher_request_),
|
| + std::move(host_ptr_info));
|
| registry_->BindWorkerToProcess(process_id(), embedded_worker_id());
|
| TRACE_EVENT_ASYNC_STEP_PAST0("ServiceWorker", "EmbeddedWorkerInstance::Start",
|
| this, "SendStartWorker");
|
| @@ -619,6 +625,7 @@ void EmbeddedWorkerInstance::OnStartWorkerMessageSent() {
|
| }
|
|
|
| void EmbeddedWorkerInstance::OnReadyForInspection() {
|
| + TRACE_EVENT0("ServiceWorker", "EmbeddedWorkerInstance::OnReadyForInspection");
|
| if (devtools_proxy_)
|
| devtools_proxy_->NotifyWorkerReadyForInspection();
|
| }
|
|
|