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

Issue 1054033004: ServiceWorker: More accurate StartWorker result and UMA (Closed)

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

Description

ServiceWorker: More accurate StartWorker result and UMA This adds SERVICE_WORKER_ERROR_DISK_CACHE to indicate failure to read from the disk cache. It also re-enables logging of StartWorker for redundant workers. This was previously disabled because we got a lot of "failed" spam for updates that get aborted when there is no script change, so I've changed StartWorker to fail with SW_ERROR_EXISTS in that case. This patch is a step in the direction of evicting a SW that can't be read from disk cache. BUG=448003 Committed: https://crrev.com/fb74da9cda4d943f453ad8e5de7b830174faf431 Cr-Commit-Position: refs/heads/master@{#326923}

Patch Set 1 #

Patch Set 2 : rm eviction stuff #

Patch Set 3 : sync #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -13 lines) Patch
M content/browser/notifications/notification_event_dispatcher_impl.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/push_messaging/push_messaging_router.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_read_from_cache_job.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_read_from_cache_job.cc View 1 2 chunks +11 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_registration_status.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 chunks +9 lines, -0 lines 3 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 6 chunks +25 lines, -9 lines 0 comments Download
M content/common/service_worker/service_worker_status_code.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_status_code.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
falken
PTAL, PatchSet 1 shows WIP for also deleting the SW when it can't be read ...
5 years, 8 months ago (2015-04-23 08:48:22 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1054033004/40001
5 years, 8 months ago (2015-04-24 04:01:49 UTC) #4
nhiroki
Looks good overall. https://codereview.chromium.org/1054033004/diff/40001/content/browser/service_worker/service_worker_version.h File content/browser/service_worker/service_worker_version.h (right): https://codereview.chromium.org/1054033004/diff/40001/content/browser/service_worker/service_worker_version.h#newcode550 content/browser/service_worker/service_worker_version.h:550: Status prestart_status_ = NEW; How about ...
5 years, 8 months ago (2015-04-24 04:58:28 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-24 05:00:51 UTC) #7
kinuko
lgtm
5 years, 8 months ago (2015-04-24 05:06:15 UTC) #8
falken
https://codereview.chromium.org/1054033004/diff/40001/content/browser/service_worker/service_worker_version.h File content/browser/service_worker/service_worker_version.h (right): https://codereview.chromium.org/1054033004/diff/40001/content/browser/service_worker/service_worker_version.h#newcode550 content/browser/service_worker/service_worker_version.h:550: Status prestart_status_ = NEW; On 2015/04/24 04:58:28, nhiroki wrote: ...
5 years, 8 months ago (2015-04-24 05:08:26 UTC) #9
nhiroki
https://codereview.chromium.org/1054033004/diff/40001/content/browser/service_worker/service_worker_version.h File content/browser/service_worker/service_worker_version.h (right): https://codereview.chromium.org/1054033004/diff/40001/content/browser/service_worker/service_worker_version.h#newcode550 content/browser/service_worker/service_worker_version.h:550: Status prestart_status_ = NEW; On 2015/04/24 05:08:26, falken wrote: ...
5 years, 8 months ago (2015-04-24 05:23:57 UTC) #10
falken
Adding OWNERS +peter: notifications and push +asvitkine: histograms
5 years, 8 months ago (2015-04-24 05:28:56 UTC) #12
johnme
push+notifications lgtm
5 years, 8 months ago (2015-04-24 08:30:41 UTC) #14
Alexei Svitkine (slow)
lgtm
5 years, 8 months ago (2015-04-24 16:43:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1054033004/40001
5 years, 8 months ago (2015-04-24 22:59:25 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-04-24 23:00:39 UTC) #18
commit-bot: I haz the power
5 years, 8 months ago (2015-04-24 23:01:26 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fb74da9cda4d943f453ad8e5de7b830174faf431
Cr-Commit-Position: refs/heads/master@{#326923}

Powered by Google App Engine
This is Rietveld 408576698