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

Issue 222003010: Make ServiceWorkerRegisterJob accumulate registration state. (Closed)

Created:
6 years, 8 months ago by dominicc (has gone to gerrit)
Modified:
6 years, 8 months ago
Reviewers:
kinuko
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

Make ServiceWorkerRegisterJob accumulate registration state. Refactoring. ServiceWorkerRegisterJob used to squirrel the ServiceWorkerRegistration it is handling in a field. It's simpler to accumulate that state in callback arguments because it is clear when the registration object exists. BUG=359433 TEST=ServiceWorkerJobTest.*

Patch Set 1 #

Patch Set 2 : Use raw pointers where lifetime is managed by Bind anyway. #

Patch Set 3 : Bring to ToT plus issue 217163008. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -21 lines) Patch
M content/browser/service_worker/service_worker_register_job.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.cc View 1 2 3 chunks +21 lines, -18 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
dominicc (has gone to gerrit)
PTAL Part one of a couple. Just refactoring first.
6 years, 8 months ago (2014-04-03 05:31:21 UTC) #1
kinuko
Yup, lgtm!
6 years, 8 months ago (2014-04-03 05:33:37 UTC) #2
dominicc (has gone to gerrit)
The CQ bit was checked by dominicc@chromium.org
6 years, 8 months ago (2014-04-03 06:27:37 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/222003010/1
6 years, 8 months ago (2014-04-03 06:28:10 UTC) #4
dominicc (has gone to gerrit)
The CQ bit was unchecked by dominicc@chromium.org
6 years, 8 months ago (2014-04-03 06:44:31 UTC) #5
dominicc (has gone to gerrit)
The CQ bit was checked by dominicc@chromium.org
6 years, 8 months ago (2014-04-03 07:06:12 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/222003010/20001
6 years, 8 months ago (2014-04-03 07:07:57 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 12:09:56 UTC) #8
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 8 months ago (2014-04-03 12:09:56 UTC) #9
dominicc (has gone to gerrit)
The CQ bit was checked by dominicc@chromium.org
6 years, 8 months ago (2014-04-03 23:26:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/222003010/20001
6 years, 8 months ago (2014-04-03 23:27:56 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 23:28:02 UTC) #12
commit-bot: I haz the power
Failed to apply patch for content/browser/service_worker/service_worker_register_job.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-03 23:28:03 UTC) #13
dominicc (has gone to gerrit)
The CQ bit was checked by dominicc@chromium.org
6 years, 8 months ago (2014-04-04 02:18:40 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/222003010/40001
6 years, 8 months ago (2014-04-04 02:18:43 UTC) #15
dominicc (has gone to gerrit)
The CQ bit was unchecked by dominicc@chromium.org
6 years, 8 months ago (2014-04-04 04:44:50 UTC) #16
dominicc (has gone to gerrit)
6 years, 8 months ago (2014-04-04 04:46:27 UTC) #17
Abandoned this; bikeshed the design w/ falken and we decided to go for getter
and setter w/ state machine so we can localize checks. It's not as rigorous as
passing the parameter, but it's more flexible if we add more state later and
light-weight when adding steps.

Powered by Google App Engine
This is Rietveld 408576698