Index: content/browser/service_worker/service_worker_internals_ui.cc |
diff --git a/content/browser/service_worker/service_worker_internals_ui.cc b/content/browser/service_worker/service_worker_internals_ui.cc |
index 8265292445a47d508a2ba84cfaa6085f82cf6272..a7c8d71681356b90951808a176feef67971efce7 100644 |
--- a/content/browser/service_worker/service_worker_internals_ui.cc |
+++ b/content/browser/service_worker/service_worker_internals_ui.cc |
@@ -216,13 +216,15 @@ ListValue* GetRegistrationListValue( |
registration_info->SetString( |
"registration_id", base::Int64ToString(registration.registration_id)); |
- if (!registration.active_version.is_null) { |
+ if (registration.active_version.version_id != |
+ kInvalidServiceWorkerVersionId) { |
DictionaryValue* active_info = new DictionaryValue(); |
UpdateVersionInfo(registration.active_version, active_info); |
registration_info->Set("active", active_info); |
} |
- if (!registration.waiting_version.is_null) { |
+ if (registration.waiting_version.version_id != |
+ kInvalidServiceWorkerVersionId) { |
DictionaryValue* waiting_info = new DictionaryValue(); |
UpdateVersionInfo(registration.waiting_version, waiting_info); |
registration_info->Set("waiting", waiting_info); |