Index: content/worker/websharedworker_stub.cc |
diff --git a/content/worker/websharedworker_stub.cc b/content/worker/websharedworker_stub.cc |
index 2737f6c422786f1ac3e74526ec7b8f9f2e490e5a..fd33a61a22c4e7b332991564367f034be2a55539 100644 |
--- a/content/worker/websharedworker_stub.cc |
+++ b/content/worker/websharedworker_stub.cc |
@@ -33,7 +33,7 @@ WebSharedWorkerStub::WebSharedWorkerStub( |
DCHECK(worker_thread); |
worker_thread->AddWorkerStub(this); |
// Start processing incoming IPCs for this worker. |
- worker_thread->AddRoute(route_id_, this); |
+ worker_thread->GetRouter()->AddRoute(route_id_, this); |
// TODO(atwilson): Add support for NaCl when they support MessagePorts. |
impl_ = blink::WebSharedWorker::create(client()); |
@@ -48,7 +48,7 @@ WebSharedWorkerStub::~WebSharedWorkerStub() { |
WorkerThread* worker_thread = WorkerThread::current(); |
DCHECK(worker_thread); |
worker_thread->RemoveWorkerStub(this); |
- worker_thread->RemoveRoute(route_id_); |
+ worker_thread->GetRouter()->RemoveRoute(route_id_); |
} |
void WebSharedWorkerStub::Shutdown() { |