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

Issue 943333007: ServiceWorker: Fix DCHECK failure during DB recovery. (Closed)

Created:
5 years, 10 months ago by xiang
Modified:
5 years, 9 months ago
Reviewers:
michaeln, falken
CC:
chromium-reviews, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+serviceworker, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Fix DCHECK failures during DB recovery. 1. Register client to quota manager after it is initialized. As the ServiceWorker cache storage is not affected during DB recovery we don't need to create a new ServiceWorkerCacheStorageManager. 2. Ongoing register jobs could be aborted by DB recovery. BUG=none Committed: https://crrev.com/3ccbc1aae4906c7bf46c91d9090db051c3dc7f44 Cr-Commit-Position: refs/heads/master@{#319044}

Patch Set 1 #

Total comments: 2

Patch Set 2 : follow michaeln@'s solution #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M content/browser/service_worker/service_worker_context_core.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_registration_status.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_script_cache_map.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 17 (4 generated)
xiang
PTAL, thanks.
5 years, 10 months ago (2015-02-25 08:19:23 UTC) #2
michaeln
https://codereview.chromium.org/943333007/diff/1/content/browser/service_worker/service_worker_cache_storage_manager.cc File content/browser/service_worker/service_worker_cache_storage_manager.cc (right): https://codereview.chromium.org/943333007/diff/1/content/browser/service_worker/service_worker_cache_storage_manager.cc#newcode115 content/browser/service_worker/service_worker_cache_storage_manager.cc:115: manager->quota_manager_proxy_ = old_manager->quota_manager_proxy_; Good bug, i think the fix ...
5 years, 10 months ago (2015-02-25 22:28:38 UTC) #3
xiang
Thanks for the review, some comments/questions before change the CL. https://codereview.chromium.org/943333007/diff/1/content/browser/service_worker/service_worker_cache_storage_manager.cc File content/browser/service_worker/service_worker_cache_storage_manager.cc (right): https://codereview.chromium.org/943333007/diff/1/content/browser/service_worker/service_worker_cache_storage_manager.cc#newcode115 ...
5 years, 9 months ago (2015-02-27 09:20:48 UTC) #4
michaeln
What a minute, CacheStorage is not wiped by delete and start over, everything remains intact! ...
5 years, 9 months ago (2015-02-27 22:58:55 UTC) #5
xiang
Thanks for the review. CL updated. On 2015/02/27 22:58:55, michaeln wrote: > What a minute, ...
5 years, 9 months ago (2015-03-03 08:53:24 UTC) #6
michaeln
lgtm, thnx!
5 years, 9 months ago (2015-03-03 20:14:11 UTC) #7
falken
Why are the changes to service_worker_registration_status.cc and service_worker_script_cache_map.cc needed? They look right, just wondering if ...
5 years, 9 months ago (2015-03-04 05:58:09 UTC) #8
xiang
On 2015/03/04 05:58:09, falken wrote: > Why are the changes to service_worker_registration_status.cc and > service_worker_script_cache_map.cc ...
5 years, 9 months ago (2015-03-04 06:34:36 UTC) #9
falken
On 2015/03/04 06:34:36, xiang wrote: > On 2015/03/04 05:58:09, falken wrote: > > Why are ...
5 years, 9 months ago (2015-03-04 06:51:54 UTC) #10
xiang
On 2015/03/04 06:51:54, falken wrote: > On 2015/03/04 06:34:36, xiang wrote: > > On 2015/03/04 ...
5 years, 9 months ago (2015-03-04 06:55:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/943333007/20001
5 years, 9 months ago (2015-03-04 07:18:48 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-04 09:48:56 UTC) #16
commit-bot: I haz the power
5 years, 9 months ago (2015-03-04 09:49:40 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3ccbc1aae4906c7bf46c91d9090db051c3dc7f44
Cr-Commit-Position: refs/heads/master@{#319044}

Powered by Google App Engine
This is Rietveld 408576698