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

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

Issue 289963002: Use new WebServiceWorkerError::ErrorType names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/browser/service_worker/service_worker_dispatcher_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a8409ff105b63138520d657c2f950a27f5ebf9e5..f17f2744187df58e9fe34e4b60d274ab0e5c614c 100644
--- a/content/browser/service_worker/service_worker_registration_status.cc
+++ b/content/browser/service_worker/service_worker_registration_status.cc
@@ -15,7 +15,7 @@ void GetServiceWorkerRegistrationStatusResponse(
ServiceWorkerStatusCode status,
blink::WebServiceWorkerError::ErrorType* error_type,
base::string16* message) {
- *error_type = WebServiceWorkerError::UnknownError;
+ *error_type = WebServiceWorkerError::ErrorTypeUnknown;
*message = base::ASCIIToUTF16(ServiceWorkerStatusToString(status));
switch (status) {
case SERVICE_WORKER_OK:
@@ -24,15 +24,15 @@ void GetServiceWorkerRegistrationStatusResponse(
case SERVICE_WORKER_ERROR_START_WORKER_FAILED:
case SERVICE_WORKER_ERROR_INSTALL_WORKER_FAILED:
- *error_type = WebServiceWorkerError::InstallError;
+ *error_type = WebServiceWorkerError::ErrorTypeInstall;
return;
case SERVICE_WORKER_ERROR_ACTIVATE_WORKER_FAILED:
- *error_type = WebServiceWorkerError::ActivateError;
+ *error_type = WebServiceWorkerError::ErrorTypeActivate;
return;
case SERVICE_WORKER_ERROR_NOT_FOUND:
- *error_type = WebServiceWorkerError::NotFoundError;
+ *error_type = WebServiceWorkerError::ErrorTypeNotFound;
return;
case SERVICE_WORKER_ERROR_ABORT:
« no previous file with comments | « content/browser/service_worker/service_worker_dispatcher_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698