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

Unified Diff: content/common/service_worker/service_worker_status_code.cc

Issue 962543005: Service Worker: Add metrics and timeout for starting a Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync again Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/service_worker/service_worker_status_code.cc
diff --git a/content/common/service_worker/service_worker_status_code.cc b/content/common/service_worker/service_worker_status_code.cc
index 35aaa86622e99e7b21227b985c52d5e836579729..3f806412905dc3749a467330da55fbf07064ba4f 100644
--- a/content/common/service_worker/service_worker_status_code.cc
+++ b/content/common/service_worker/service_worker_status_code.cc
@@ -39,6 +39,10 @@ const char* ServiceWorkerStatusToString(ServiceWorkerStatusCode status) {
"Promise rejected)";
case SERVICE_WORKER_ERROR_STATE:
return "The ServiceWorker state was not valid";
+ case SERVICE_WORKER_ERROR_TIMEOUT:
+ return "The ServiceWorker timed out";
+ case SERVICE_WORKER_ERROR_MAX_VALUE:
+ NOTREACHED();
}
NOTREACHED();
return "";

Powered by Google App Engine
This is Rietveld 408576698