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

Issue 188283003: Add ServiceWorkerVersion::status() (which is to be persisted unlike running status) (Closed)

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

Description

Add ServiceWorkerVersion::status() (which is to be persisted unlike running status) - Changes ServiceWorkerVersion::status() to ServiceWorkerVersion::running_status() - Adds ServiceWorkerVersion::status() - Also changes who to assign new version ID (from registration to storage) BUG=285976 TEST=existing tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256200

Patch Set 1 #

Total comments: 4

Patch Set 2 : added more statuses #

Total comments: 2

Patch Set 3 : rebase #

Patch Set 4 : build fix after rebase #

Messages

Total messages: 30 (0 generated)
kinuko
I'm gradually making browser modules more storage aware (so that it becomes closer to real ...
6 years, 9 months ago (2014-03-06 06:12:38 UTC) #1
alecflett
lgtm I'm not sure how the new status is persisted (would we really bother to ...
6 years, 9 months ago (2014-03-06 19:10:24 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/188283003/1
6 years, 9 months ago (2014-03-06 19:16:08 UTC) #3
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 19:39:52 UTC) #4
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
6 years, 9 months ago (2014-03-06 19:39:52 UTC) #5
alecflett
The CQ bit was checked by alecflett@chromium.org
6 years, 9 months ago (2014-03-06 19:41:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/188283003/1
6 years, 9 months ago (2014-03-06 19:47:37 UTC) #7
michaeln
https://codereview.chromium.org/188283003/diff/1/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/188283003/diff/1/content/browser/service_worker/service_worker_register_job.cc#newcode129 content/browser/service_worker/service_worker_register_job.cc:129: // the install/activate event is dispatched. On 2014/03/06 19:10:24, ...
6 years, 9 months ago (2014-03-06 19:49:54 UTC) #8
michaeln
The CQ bit was unchecked by michaeln@chromium.org
6 years, 9 months ago (2014-03-06 19:50:06 UTC) #9
alecflett
On 2014/03/06 19:49:54, michaeln wrote: > https://codereview.chromium.org/188283003/diff/1/content/browser/service_worker/service_worker_register_job.cc > File content/browser/service_worker/service_worker_register_job.cc (right): > > https://codereview.chromium.org/188283003/diff/1/content/browser/service_worker/service_worker_register_job.cc#newcode129 > ...
6 years, 9 months ago (2014-03-06 21:13:08 UTC) #10
michaeln
> > Regarding setting before, what if activate fails? > > Activate can't fail. Once ...
6 years, 9 months ago (2014-03-06 22:37:57 UTC) #11
michaeln
On 2014/03/06 22:37:57, michaeln wrote: > > > Regarding setting before, what if activate fails? ...
6 years, 9 months ago (2014-03-06 22:51:40 UTC) #12
michaeln
Hmmm... NEW - set this way in ctor INSTALLING - install event is in flight ...
6 years, 9 months ago (2014-03-06 23:01:03 UTC) #13
kinuko
On 2014/03/06 23:01:03, michaeln wrote: > Hmmm... > > NEW - set this way in ...
6 years, 9 months ago (2014-03-07 00:43:03 UTC) #14
michaeln
> Probably the only ones that get persisted to disk are INSTALLED and ACTIVE. > ...
6 years, 9 months ago (2014-03-07 00:55:58 UTC) #15
kinuko
On 2014/03/07 00:55:58, michaeln wrote: > > Probably the only ones that get persisted to ...
6 years, 9 months ago (2014-03-07 00:59:31 UTC) #16
kinuko
On 2014/03/07 00:59:31, kinuko wrote: > On 2014/03/07 00:55:58, michaeln wrote: > > > Probably ...
6 years, 9 months ago (2014-03-07 01:03:51 UTC) #17
michaeln
> (Have read more comments.) the status list in #13 is what you think we'll ...
6 years, 9 months ago (2014-03-07 01:49:49 UTC) #18
kinuko
I ended up adding NEW, INSTALLING, INSTALLED, ACTIVATING, ACTIVE and DEACTIVATED. The 'deactivated' status may ...
6 years, 9 months ago (2014-03-10 10:36:55 UTC) #19
michaeln
lgtm https://codereview.chromium.org/188283003/diff/80001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/188283003/diff/80001/content/browser/service_worker/service_worker_version.cc#newcode207 content/browser/service_worker/service_worker_version.cc:207: if (status() != NEW) { I wonder if ...
6 years, 9 months ago (2014-03-10 18:53:44 UTC) #20
kinuko
https://codereview.chromium.org/188283003/diff/80001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/188283003/diff/80001/content/browser/service_worker/service_worker_version.cc#newcode207 content/browser/service_worker/service_worker_version.cc:207: if (status() != NEW) { On 2014/03/10 18:53:45, michaeln ...
6 years, 9 months ago (2014-03-11 06:58:34 UTC) #21
kinuko
The CQ bit was checked by kinuko@chromium.org
6 years, 9 months ago (2014-03-11 06:58:39 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/188283003/80001
6 years, 9 months ago (2014-03-11 07:02:45 UTC) #23
kinuko
The CQ bit was checked by kinuko@chromium.org
6 years, 9 months ago (2014-03-11 07:33:11 UTC) #24
commit-bot: I haz the power
Failed to trigger a try job on linux_rel HTTP Error 400: Bad Request
6 years, 9 months ago (2014-03-11 07:35:26 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/188283003/100001
6 years, 9 months ago (2014-03-11 07:35:32 UTC) #26
kinuko
The CQ bit was unchecked by kinuko@chromium.org
6 years, 9 months ago (2014-03-11 07:40:24 UTC) #27
kinuko
The CQ bit was checked by kinuko@chromium.org
6 years, 9 months ago (2014-03-11 07:49:53 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/188283003/120001
6 years, 9 months ago (2014-03-11 07:50:23 UTC) #29
commit-bot: I haz the power
6 years, 9 months ago (2014-03-11 11:26:17 UTC) #30
Message was sent while issue was closed.
Change committed as 256200

Powered by Google App Engine
This is Rietveld 408576698