diff options
Diffstat (limited to 'chrome/worker/webworker_stub_base.cc')
-rw-r--r-- | chrome/worker/webworker_stub_base.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/chrome/worker/webworker_stub_base.cc b/chrome/worker/webworker_stub_base.cc index b999f44..8ea2a15 100644 --- a/chrome/worker/webworker_stub_base.cc +++ b/chrome/worker/webworker_stub_base.cc @@ -12,19 +12,13 @@ WebWorkerStubBase::WebWorkerStubBase(int route_id) : route_id_(route_id), ALLOW_THIS_IN_INITIALIZER_LIST(client_(route_id, this)) { - WorkerThread* workerThread = WorkerThread::current(); - DCHECK(workerThread); - workerThread->AddWorkerStub(this); // Start processing incoming IPCs for this worker. - workerThread->AddRoute(route_id_, this); + WorkerThread::current()->AddRoute(route_id_, this); ChildProcess::current()->AddRefProcess(); } WebWorkerStubBase::~WebWorkerStubBase() { - WorkerThread* workerThread = WorkerThread::current(); - DCHECK(workerThread); - workerThread->RemoveWorkerStub(this); - workerThread->RemoveRoute(route_id_); + WorkerThread::current()->RemoveRoute(route_id_); ChildProcess::current()->ReleaseProcess(); } |