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

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

Issue 871853002: ServiceWorker: add ServiceWorkerClients.claim() support (2/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove assignment within conditional expression Created 5 years, 11 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 f5c1e021f10ed5789383efc55921e432edaeab64..35aaa86622e99e7b21227b985c52d5e836579729 100644
--- a/content/common/service_worker/service_worker_status_code.cc
+++ b/content/common/service_worker/service_worker_status_code.cc
@@ -37,6 +37,8 @@ const char* ServiceWorkerStatusToString(ServiceWorkerStatusCode status) {
case SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED:
return "ServiceWorker failed to handle event (event.waitUntil "
"Promise rejected)";
+ case SERVICE_WORKER_ERROR_STATE:
+ return "The ServiceWorker state was not valid";
}
NOTREACHED();
return "";

Powered by Google App Engine
This is Rietveld 408576698