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

Unified Diff: content/browser/service_worker/service_worker_registration_status.cc

Issue 567903002: ServiceWorker: Change worker script fetch error code(2/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase & fix typo Created 6 years, 3 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/browser/service_worker/service_worker_registration_status.cc
diff --git a/content/browser/service_worker/service_worker_registration_status.cc b/content/browser/service_worker/service_worker_registration_status.cc
index ee5ea906676044dc2288c9bd3aa996d29d435f74..e67b833826d33b986b79411e22b2f726de61740f 100644
--- a/content/browser/service_worker/service_worker_registration_status.cc
+++ b/content/browser/service_worker/service_worker_registration_status.cc
@@ -35,6 +35,14 @@ void GetServiceWorkerRegistrationStatusResponse(
*error_type = WebServiceWorkerError::ErrorTypeNotFound;
return;
+ case SERVICE_WORKER_ERROR_NETWORK:
+ *error_type = WebServiceWorkerError::ErrorTypeNetwork;
+ return;
+
+ case SERVICE_WORKER_ERROR_SECURITY:
+ *error_type = WebServiceWorkerError::ErrorTypeSecurity;
+ return;
+
case SERVICE_WORKER_ERROR_ABORT:
case SERVICE_WORKER_ERROR_IPC_FAILED:
case SERVICE_WORKER_ERROR_FAILED:

Powered by Google App Engine
This is Rietveld 408576698