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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerRegistration.idl

Issue 1267703003: Service Worker: Make ServiceWorkerRegistration.update() return a promise. (Blink 1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Overload WebServiceWorkerRegistration::update() to land patch sets across the repos. 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: Source/modules/serviceworkers/ServiceWorkerRegistration.idl
diff --git a/Source/modules/serviceworkers/ServiceWorkerRegistration.idl b/Source/modules/serviceworkers/ServiceWorkerRegistration.idl
index c88cb42366a65c4624a7a5a91d8bd6c7e0a79849..982e93a48612018a5105cf7b10a24cf018b36a84 100644
--- a/Source/modules/serviceworkers/ServiceWorkerRegistration.idl
+++ b/Source/modules/serviceworkers/ServiceWorkerRegistration.idl
@@ -15,7 +15,7 @@
readonly attribute USVString scope;
- [CallWith=ScriptState, RaisesException] void update();
+ [CallWith=ScriptState] Promise<void> update();
[CallWith=ScriptState] Promise<boolean> unregister();
attribute EventHandler onupdatefound;

Powered by Google App Engine
This is Rietveld 408576698