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

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

Issue 943333007: ServiceWorker: Fix DCHECK failure during DB recovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: follow michaeln@'s solution Created 5 years, 10 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 | « content/browser/service_worker/service_worker_registration_status.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_script_cache_map.cc
diff --git a/content/browser/service_worker/service_worker_script_cache_map.cc b/content/browser/service_worker/service_worker_script_cache_map.cc
index 925fe6e3b4764821dd6f3132f81396e0d0334151..6d5361ffd6a7c4ad092d91749f82a4f175c6d86f 100644
--- a/content/browser/service_worker/service_worker_script_cache_map.cc
+++ b/content/browser/service_worker/service_worker_script_cache_map.cc
@@ -57,7 +57,8 @@ void ServiceWorkerScriptCacheMap::NotifyFinishedCaching(
const std::string& status_message) {
DCHECK_NE(kInvalidServiceWorkerResponseId, LookupResourceId(url));
DCHECK(owner_->status() == ServiceWorkerVersion::NEW ||
- owner_->status() == ServiceWorkerVersion::INSTALLING);
+ owner_->status() == ServiceWorkerVersion::INSTALLING ||
+ owner_->status() == ServiceWorkerVersion::REDUNDANT);
if (!context_)
return; // Our storage has been wiped via DeleteAndStartOver.
if (!status.is_success()) {
« no previous file with comments | « content/browser/service_worker/service_worker_registration_status.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698