Index: content/browser/service_worker/service_worker_job_coordinator.cc |
diff --git a/content/browser/service_worker/service_worker_job_coordinator.cc b/content/browser/service_worker/service_worker_job_coordinator.cc |
index 13e4b4b703ca28e5a47cdaddac99a1a5bb869b78..e5e89620e86769b8fd03890ca49753d993b89380 100644 |
--- a/content/browser/service_worker/service_worker_job_coordinator.cc |
+++ b/content/browser/service_worker/service_worker_job_coordinator.cc |
@@ -94,6 +94,8 @@ void ServiceWorkerJobCoordinator::Unregister( |
void ServiceWorkerJobCoordinator::Update( |
ServiceWorkerRegistration* registration) { |
+ DCHECK(registration); |
+ DCHECK(registration->GetNewestVersion()); |
job_queues_[registration->pattern()].Push( |
make_scoped_ptr<ServiceWorkerRegisterJobBase>( |
new ServiceWorkerRegisterJob(context_, registration))); |