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

Unified Diff: content/child/service_worker/web_service_worker_registration_impl.cc

Issue 2564363002: ServiceWorker: Replace RegistrationCallback and GetRegistrationsCallback with CallbackPromiseAdapter (Closed)
Patch Set: base::MakeUnique Created 4 years 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/child/service_worker/web_service_worker_registration_impl.cc
diff --git a/content/child/service_worker/web_service_worker_registration_impl.cc b/content/child/service_worker/web_service_worker_registration_impl.cc
index 48d440e40c3eaa4614c84b9ed1fff8fc3b700208..de0acf7b035d155c5c01d7e96c9c565576c40cfb 100644
--- a/content/child/service_worker/web_service_worker_registration_impl.cc
+++ b/content/child/service_worker/web_service_worker_registration_impl.cc
@@ -200,14 +200,6 @@ WebServiceWorkerRegistrationImpl::CreateHandle(
return base::MakeUnique<HandleImpl>(registration);
}
-blink::WebServiceWorkerRegistration::Handle*
-WebServiceWorkerRegistrationImpl::CreateLeakyHandle(
- const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration) {
- if (!registration)
- return nullptr;
- return new HandleImpl(registration);
-}
-
WebServiceWorkerRegistrationImpl::~WebServiceWorkerRegistrationImpl() {
ServiceWorkerDispatcher* dispatcher =
ServiceWorkerDispatcher::GetThreadSpecificInstance();

Powered by Google App Engine
This is Rietveld 408576698