Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: content/browser/service_worker/service_worker_browsertest.cc

Issue 691413002: Removing redundant 'is_null' field in ServiceWorkerVersionInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698