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

Unified Diff: public/platform/WebServiceWorkerRegistration.h

Issue 1268663003: Service Worker: Make ServiceWorkerRegistration.update() return a promise. (Blink Layout 3/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove output set before setcookie. Created 5 years, 4 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: public/platform/WebServiceWorkerRegistration.h
diff --git a/public/platform/WebServiceWorkerRegistration.h b/public/platform/WebServiceWorkerRegistration.h
index 0bf5cd19406418dc7d94059544c240cd4954e5b1..7ce53c96169d986005c4c51daef40404d898ff2d 100644
--- a/public/platform/WebServiceWorkerRegistration.h
+++ b/public/platform/WebServiceWorkerRegistration.h
@@ -26,18 +26,7 @@ public:
virtual void proxyStopped() { }
virtual WebURL scope() const { return WebURL(); }
- // TODO(jungkees):
- // void update(p) remains temporarily before the chromium-side companion
- // patch lands: https://codereview.chromium.org/1270513002/.
- // Before the chromium-side patch lands, the new update(p, c) will
- // internally call update(provider) to work with the existing code base.
- // The final changes will be incorporated with the Blink layout patches.
- virtual void update(WebServiceWorkerProvider*) { }
- virtual void update(WebServiceWorkerProvider* provider, WebServiceWorkerUpdateCallbacks* callback)
- {
- update(provider);
- callback->onSuccess();
- }
+ virtual void update(WebServiceWorkerProvider*, WebServiceWorkerUpdateCallbacks*) { }
virtual void unregister(WebServiceWorkerProvider*, WebServiceWorkerUnregistrationCallbacks*) { }
};

Powered by Google App Engine
This is Rietveld 408576698