Index: content/browser/service_worker/service_worker_browsertest.cc |
diff --git a/content/browser/service_worker/service_worker_browsertest.cc b/content/browser/service_worker/service_worker_browsertest.cc |
index 01b1ffac45cf6032261da58e6adbbef7ca06b2f8..0a67c1022061fb6e6c9e97c28374659644780963 100644 |
--- a/content/browser/service_worker/service_worker_browsertest.cc |
+++ b/content/browser/service_worker/service_worker_browsertest.cc |
@@ -242,11 +242,14 @@ void CountScriptResources( |
int version_id; |
size_t index = infos.size() - 1; |
- if (!infos[index].installing_version.is_null) |
+ if (infos[index].installing_version.version_id != |
+ kInvalidServiceWorkerVersionId) |
version_id = infos[index].installing_version.version_id; |
- else if (!infos[index].waiting_version.is_null) |
+ else if (infos[index].waiting_version.version_id != |
+ kInvalidServiceWorkerVersionId) |
version_id = infos[1].waiting_version.version_id; |
- else if (!infos[index].active_version.is_null) |
+ else if (infos[index].active_version.version_id != |
+ kInvalidServiceWorkerVersionId) |
version_id = infos[index].active_version.version_id; |
else |
return; |