Index: components/precache/core/precache_fetcher.cc |
diff --git a/components/precache/core/precache_fetcher.cc b/components/precache/core/precache_fetcher.cc |
index 7b567611a4958b6112072dcc822f81d6437f71a6..379774aebbd97e08b5d78faebb007d24cbc0c155 100644 |
--- a/components/precache/core/precache_fetcher.cc |
+++ b/components/precache/core/precache_fetcher.cc |
@@ -296,7 +296,7 @@ void PrecacheFetcher::RecordCompletionStatistics( |
// If there are resource URLs left to fetch, the last manifest is not yet |
// completed. |
- if (remaining_resource_urls_to_fetch > 0) |
+ if (remaining_resource_urls_to_fetch > 0 && manifests_completed > 0) |
--manifests_completed; |
DCHECK_GE(manifests_completed, 0); |