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

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

Issue 142973003: Have a central operation status code for ServiceWorker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/browser/service_worker/service_worker_dispatcher_host.cc
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.cc b/content/browser/service_worker/service_worker_dispatcher_host.cc
index 8fe3ebe6adbea7608fed708445cec34228bbaa3e..6b2d299664732395b9ca999cf24bbcc5194e6dc6 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.cc
+++ b/content/browser/service_worker/service_worker_dispatcher_host.cc
@@ -169,9 +169,9 @@ void ServiceWorkerDispatcherHost::OnProviderDestroyed(int provider_id) {
void ServiceWorkerDispatcherHost::RegistrationComplete(
int32 thread_id,
int32 request_id,
- ServiceWorkerRegistrationStatus status,
+ ServiceWorkerStatusCode status,
int64 registration_id) {
- if (status != REGISTRATION_OK) {
+ if (status != SERVICE_WORKER_OK) {
SendRegistrationError(thread_id, request_id, status);
return;
}
@@ -207,8 +207,8 @@ void ServiceWorkerDispatcherHost::OnSendMessageToBrowser(
void ServiceWorkerDispatcherHost::UnregistrationComplete(
int32 thread_id,
int32 request_id,
- ServiceWorkerRegistrationStatus status) {
- if (status != REGISTRATION_OK) {
+ ServiceWorkerStatusCode status) {
+ if (status != SERVICE_WORKER_OK) {
SendRegistrationError(thread_id, request_id, status);
return;
}
@@ -219,7 +219,7 @@ void ServiceWorkerDispatcherHost::UnregistrationComplete(
void ServiceWorkerDispatcherHost::SendRegistrationError(
int32 thread_id,
int32 request_id,
- ServiceWorkerRegistrationStatus status) {
+ ServiceWorkerStatusCode status) {
base::string16 error_message;
blink::WebServiceWorkerError::ErrorType error_type;
GetServiceWorkerRegistrationStatusResponse(

Powered by Google App Engine
This is Rietveld 408576698