Index: content/browser/service_worker/service_worker_provider_host.cc |
diff --git a/content/browser/service_worker/service_worker_provider_host.cc b/content/browser/service_worker/service_worker_provider_host.cc |
index 2e6394b6ff062e09ff4032a6d956c5a4062b6b96..f15022e589991540a4988eb0f7b2b81b9e850775 100644 |
--- a/content/browser/service_worker/service_worker_provider_host.cc |
+++ b/content/browser/service_worker/service_worker_provider_host.cc |
@@ -10,7 +10,6 @@ |
#include "base/memory/ptr_util.h" |
#include "base/stl_util.h" |
#include "base/time/time.h" |
-#include "content/browser/message_port_message_filter.h" |
#include "content/browser/service_worker/embedded_worker_status.h" |
#include "content/browser/service_worker/service_worker_context_core.h" |
#include "content/browser/service_worker/service_worker_context_request_handler.h" |
@@ -441,22 +440,16 @@ bool ServiceWorkerProviderHost::CanAssociateRegistration( |
void ServiceWorkerProviderHost::PostMessageToClient( |
ServiceWorkerVersion* version, |
const base::string16& message, |
- const std::vector<int>& sent_message_ports) { |
+ const std::vector<MessagePort>& sent_message_ports) { |
if (!dispatcher_host_) |
return; // Could be NULL in some tests. |
- std::vector<int> new_routing_ids; |
- dispatcher_host_->message_port_message_filter()-> |
- UpdateMessagePortsWithNewRoutes(sent_message_ports, |
- &new_routing_ids); |
- |
ServiceWorkerMsg_MessageToDocument_Params params; |
params.thread_id = kDocumentMainThreadId; |
params.provider_id = provider_id(); |
params.service_worker_info = GetOrCreateServiceWorkerHandle(version); |
params.message = message; |
params.message_ports = sent_message_ports; |
- params.new_routing_ids = new_routing_ids; |
Send(new ServiceWorkerMsg_MessageToDocument(params)); |
} |