| Index: content/browser/service_worker/embedded_worker_test_helper.cc
|
| diff --git a/content/browser/service_worker/embedded_worker_test_helper.cc b/content/browser/service_worker/embedded_worker_test_helper.cc
|
| index 3d8790f6a531d159e08bbc6a6e1702fb6587a9d0..c43808b28b5da72a8b71fd5439ee04d544623a99 100644
|
| --- a/content/browser/service_worker/embedded_worker_test_helper.cc
|
| +++ b/content/browser/service_worker/embedded_worker_test_helper.cc
|
| @@ -154,8 +154,8 @@ void EmbeddedWorkerTestHelper::SimulateWorkerStarted(
|
| void EmbeddedWorkerTestHelper::SimulateWorkerStopped(
|
| int embedded_worker_id) {
|
| EmbeddedWorkerInstance* worker = registry()->GetWorker(embedded_worker_id);
|
| - ASSERT_TRUE(worker != NULL);
|
| - registry()->OnWorkerStopped(worker->process_id(), embedded_worker_id);
|
| + if (worker != NULL)
|
| + registry()->OnWorkerStopped(worker->process_id(), embedded_worker_id);
|
| }
|
|
|
| void EmbeddedWorkerTestHelper::SimulateSend(
|
|
|