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

Unified Diff: content/browser/service_worker/service_worker_storage.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_storage.cc
diff --git a/content/browser/service_worker/service_worker_storage.cc b/content/browser/service_worker/service_worker_storage.cc
index 26e1f50b64f1dc4302f5697d52144a8338901372..8a9f66b300b83197dab30aae60c19bd17eef2fda 100644
--- a/content/browser/service_worker/service_worker_storage.cc
+++ b/content/browser/service_worker/service_worker_storage.cc
@@ -54,14 +54,14 @@ void ServiceWorkerStorage::FindRegistrationForPattern(
FROM_HERE,
base::Bind(callback,
false /* found */,
- REGISTRATION_OK,
+ SERVICE_WORKER_OK,
scoped_refptr<ServiceWorkerRegistration>()));
return;
}
BrowserThread::PostTask(
BrowserThread::IO,
FROM_HERE,
- base::Bind(callback, true /* found */, REGISTRATION_OK, match->second));
+ base::Bind(callback, true /* found */, SERVICE_WORKER_OK, match->second));
}
void ServiceWorkerStorage::FindRegistrationForDocument(
@@ -80,7 +80,7 @@ void ServiceWorkerStorage::FindRegistrationForDocument(
FROM_HERE,
base::Bind(callback,
true /* found */,
- REGISTRATION_OK,
+ SERVICE_WORKER_OK,
scoped_refptr<ServiceWorkerRegistration>(it->second)));
return;
}
@@ -90,7 +90,7 @@ void ServiceWorkerStorage::FindRegistrationForDocument(
FROM_HERE,
base::Bind(callback,
false /* found */,
- REGISTRATION_OK,
+ SERVICE_WORKER_OK,
scoped_refptr<ServiceWorkerRegistration>()));
}
« no previous file with comments | « content/browser/service_worker/service_worker_storage.h ('k') | content/common/service_worker/service_worker_status_code.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698