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

Unified Diff: content/browser/service_worker/service_worker_context_core.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_context_core.cc
diff --git a/content/browser/service_worker/service_worker_context_core.cc b/content/browser/service_worker/service_worker_context_core.cc
index 0a30b7bba14fdd075b8344694fbdea823b9a16a9..7a4d19b08b296e9ede25befdabc58cd1eb6a78bb 100644
--- a/content/browser/service_worker/service_worker_context_core.cc
+++ b/content/browser/service_worker/service_worker_context_core.cc
@@ -89,9 +89,9 @@ void ServiceWorkerContextCore::UnregisterServiceWorker(
void ServiceWorkerContextCore::RegistrationComplete(
const ServiceWorkerContextCore::RegistrationCallback& callback,
- ServiceWorkerRegistrationStatus status,
+ ServiceWorkerStatusCode status,
const scoped_refptr<ServiceWorkerRegistration>& registration) {
- if (status != REGISTRATION_OK) {
+ if (status != SERVICE_WORKER_OK) {
DCHECK(!registration);
callback.Run(status, -1L);
}

Powered by Google App Engine
This is Rietveld 408576698