ServiceWorker: More accurate StartWorker result and UMA
commitfb74da9cda4d943f453ad8e5de7b830174faf431
authorfalken <falken@chromium.org>
Fri, 24 Apr 2015 23:00:19 +0000 (24 16:00 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 24 Apr 2015 23:00:26 +0000 (24 23:00 +0000)
tree7424051d777497929086e885027410cb7c0ae16e
parent2e7db0a2b9bd955352aee0762504b3c9c8c78fd0
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

Review URL: https://codereview.chromium.org/1054033004

Cr-Commit-Position: refs/heads/master@{#326923}
12 files changed:
content/browser/notifications/notification_event_dispatcher_impl.cc
content/browser/push_messaging/push_messaging_message_filter.cc
content/browser/push_messaging/push_messaging_router.cc
content/browser/service_worker/service_worker_read_from_cache_job.cc
content/browser/service_worker/service_worker_read_from_cache_job.h
content/browser/service_worker/service_worker_register_job.cc
content/browser/service_worker/service_worker_registration_status.cc
content/browser/service_worker/service_worker_version.cc
content/browser/service_worker/service_worker_version.h
content/common/service_worker/service_worker_status_code.cc
content/common/service_worker/service_worker_status_code.h
tools/metrics/histograms/histograms.xml