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

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

Issue 1063823005: Service Worker: Use more specific errors when StartWorker fails (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update histograms.xml Created 5 years, 8 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
« no previous file with comments | « content/common/service_worker/service_worker_status_code.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3f806412905dc3749a467330da55fbf07064ba4f..589cb2be65488f512f9b7a6234fa2157b42bddc5 100644
--- a/content/common/service_worker/service_worker_status_code.cc
+++ b/content/common/service_worker/service_worker_status_code.cc
@@ -41,6 +41,8 @@ const char* ServiceWorkerStatusToString(ServiceWorkerStatusCode status) {
return "The ServiceWorker state was not valid";
case SERVICE_WORKER_ERROR_TIMEOUT:
return "The ServiceWorker timed out";
+ case SERVICE_WORKER_ERROR_SCRIPT_EVALUATE_FAILED:
+ return "ServiceWorker script evaluation failed";
case SERVICE_WORKER_ERROR_MAX_VALUE:
NOTREACHED();
}
« no previous file with comments | « content/common/service_worker/service_worker_status_code.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698