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

Issue 229403004: Assert about ServiceWorkerRegisterJob internal state in terms of phases (Closed)

Created:
6 years, 8 months ago by falken
Modified:
6 years, 8 months ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+watch, alecflett+watch_chromium.org
Visibility:
Public.

Description

Assert about ServiceWorkerRegisterJob internal state in terms of phases Instead of ad-hoc DCHECKs of internal state throughout the job's callbacks, introduce a phase system and add DCHECKs to internal state getters/setters in terms of it. BUG=349337 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262936

Patch Set 1 #

Patch Set 2 : format #

Patch Set 3 : more assert #

Total comments: 2

Patch Set 4 : review comments and fix build/style #

Patch Set 5 : sync #

Patch Set 6 : fix ctor/dtor style error and bad merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -35 lines) Patch
M content/browser/service_worker/service_worker_register_job.h View 1 2 3 4 5 2 chunks +30 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.cc View 1 2 3 4 5 11 chunks +93 lines, -30 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job_base.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_unregister_job.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
falken
PTL Successor to https://codereview.chromium.org/222003010/
6 years, 8 months ago (2014-04-08 23:30:53 UTC) #1
dominicc (has gone to gerrit)
LGTM I would like to have phase_ assigned directly in only two places: Constructor and ...
6 years, 8 months ago (2014-04-09 00:09:58 UTC) #2
falken
Thanks, makes sense. kinuko: Can you please review as OWNER? https://codereview.chromium.org/229403004/diff/40001/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/229403004/diff/40001/content/browser/service_worker/service_worker_register_job.cc#newcode44 ...
6 years, 8 months ago (2014-04-09 01:33:19 UTC) #3
kinuko
lgtm, can you rebase this on top of https://codereview.chromium.org/224733014/ ?
6 years, 8 months ago (2014-04-09 02:43:30 UTC) #4
falken
The CQ bit was checked by falken@chromium.org
6 years, 8 months ago (2014-04-10 01:07:23 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/229403004/100001
6 years, 8 months ago (2014-04-10 01:07:41 UTC) #6
commit-bot: I haz the power
6 years, 8 months ago (2014-04-10 05:36:27 UTC) #7
Message was sent while issue was closed.
Change committed as 262936

Powered by Google App Engine
This is Rietveld 408576698