| 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 60876b8d71694cdd720ec3c97bcb0365d209e070..54bcd77c955f19a74e238fad49b310f3ed3ad1c3 100644
|
| --- a/content/browser/service_worker/service_worker_script_cache_map.cc
|
| +++ b/content/browser/service_worker/service_worker_script_cache_map.cc
|
| @@ -33,7 +33,8 @@ int64 ServiceWorkerScriptCacheMap::Lookup(const GURL& url) {
|
| void ServiceWorkerScriptCacheMap::NotifyStartedCaching(
|
| const GURL& url, int64 resource_id) {
|
| DCHECK_EQ(kInvalidServiceWorkerResponseId, Lookup(url));
|
| - DCHECK(owner_->status() == ServiceWorkerVersion::NEW);
|
| + DCHECK(owner_->status() == ServiceWorkerVersion::NEW ||
|
| + owner_->status() == ServiceWorkerVersion::INSTALLING);
|
| resource_ids_[url] = resource_id;
|
| context_->storage()->StoreUncommittedReponseId(resource_id);
|
| }
|
| @@ -41,7 +42,8 @@ void ServiceWorkerScriptCacheMap::NotifyStartedCaching(
|
| void ServiceWorkerScriptCacheMap::NotifyFinishedCaching(
|
| const GURL& url, bool success) {
|
| DCHECK_NE(kInvalidServiceWorkerResponseId, Lookup(url));
|
| - DCHECK(owner_->status() == ServiceWorkerVersion::NEW);
|
| + DCHECK(owner_->status() == ServiceWorkerVersion::NEW ||
|
| + owner_->status() == ServiceWorkerVersion::INSTALLING);
|
| if (!success) {
|
| context_->storage()->DoomUncommittedResponse(Lookup(url));
|
| has_error_ = true;
|
|
|