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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/background_sync/resources/test-helpers.js

Issue 1437883002: [Background Sync] Align exposed API with spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src@remove-periodic
Patch Set: Rebase Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Returns a promise which resolves when all registrations have been cleared
2 // from the given background sync manager.
3 function clear_registered_syncs(sync_manager) {
4 return sync_manager.getRegistrations().then(function(registrations) {
5 return Promise.all(
6 registrations.map(registration => registration.unregister()));
7 });
8 }
9
10 // Clears all background sync registrations from the sync manager.
11 function clear_all_syncs(serviceworker_registration) {
12 return clear_registered_syncs(serviceworker_registration.sync);
13 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698