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

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

Issue 1270513002: Service Worker: Make ServiceWorkerRegistration.update() return a promise. (Chromium 2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass a raw ptr to callback's onError instead of a scoped_ptr. Created 5 years, 5 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/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 99addd0cf50a225b5388e973f35c0de89575bca1..1b4b610cb6894f376dd92c0135306550d64719fe 100644
--- a/content/child/service_worker/web_service_worker_registration_impl.cc
+++ b/content/child/service_worker/web_service_worker_registration_impl.cc
@@ -114,14 +114,15 @@ blink::WebURL WebServiceWorkerRegistrationImpl::scope() const {
}
void WebServiceWorkerRegistrationImpl::update(
- blink::WebServiceWorkerProvider* provider) {
+ blink::WebServiceWorkerProvider* provider,
+ WebServiceWorkerUpdateCallbacks* callbacks) {
WebServiceWorkerProviderImpl* provider_impl =
static_cast<WebServiceWorkerProviderImpl*>(provider);
ServiceWorkerDispatcher* dispatcher =
ServiceWorkerDispatcher::GetThreadSpecificInstance();
DCHECK(dispatcher);
dispatcher->UpdateServiceWorker(provider_impl->provider_id(),
- registration_id());
+ registration_id(), callbacks);
}
void WebServiceWorkerRegistrationImpl::unregister(

Powered by Google App Engine
This is Rietveld 408576698