Index: content/browser/service_worker/embedded_worker_instance.cc |
diff --git a/content/browser/service_worker/embedded_worker_instance.cc b/content/browser/service_worker/embedded_worker_instance.cc |
index 5efdd30f358f41b7c9781cc6a234ebad86994196..840b84c6e74bd09a6aace30202685b8b25083099 100644 |
--- a/content/browser/service_worker/embedded_worker_instance.cc |
+++ b/content/browser/service_worker/embedded_worker_instance.cc |
@@ -149,6 +149,9 @@ void EmbeddedWorkerInstance::Start(int64 service_worker_version_id, |
return; |
} |
DCHECK(status_ == STOPPED); |
+ // TODO(horo): If we will see crashes here, we have to find the root cause of |
+ // the invalid version ID. Otherwise change CHECK to DCHECK. |
+ CHECK_NE(service_worker_version_id, kInvalidServiceWorkerVersionId); |
start_timing_ = base::TimeTicks::Now(); |
status_ = STARTING; |
starting_phase_ = ALLOCATING_PROCESS; |