Index: content/browser/worker_host/worker_process_host.cc |
=================================================================== |
--- content/browser/worker_host/worker_process_host.cc (revision 270218) |
+++ content/browser/worker_host/worker_process_host.cc (working copy) |
@@ -510,12 +510,12 @@ |
WorkerInstance* instance) { |
if (message.type() == WorkerMsg_Connect::ID) { |
// Crack the SharedWorker Connect message to setup routing for the port. |
- int sent_message_port_id; |
- int new_routing_id; |
- if (!WorkerMsg_Connect::Read( |
- &message, &sent_message_port_id, &new_routing_id)) { |
+ WorkerMsg_Connect::Param params; |
+ if (!WorkerMsg_Connect::Read(&message, ¶ms)) |
return; |
- } |
+ |
+ int sent_message_port_id = params.a; |
+ int new_routing_id = params.b; |
new_routing_id = worker_message_filter_->GetNextRoutingID(); |
MessagePortService::GetInstance()->UpdateMessagePort( |
sent_message_port_id, |