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

Unified Diff: content/browser/service_worker/service_worker_context_core.cc

Issue 1146913004: Service Worker: Add ServiceWorkerContainer.getRegistrations() method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add database unittests for reading resources list; Rebase to ToT. Created 5 years, 6 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/browser/service_worker/service_worker_context_core.cc
diff --git a/content/browser/service_worker/service_worker_context_core.cc b/content/browser/service_worker/service_worker_context_core.cc
index fef7bcdc0faefc95bd60590b58183a94d321aeb0..d2d69342ac5f146df8f3405c6d9fe475bc100de2 100644
--- a/content/browser/service_worker/service_worker_context_core.cc
+++ b/content/browser/service_worker/service_worker_context_core.cc
@@ -296,11 +296,9 @@ void ServiceWorkerContextCore::UnregisterServiceWorkers(
return;
}
- storage()->GetAllRegistrations(base::Bind(
+ storage()->GetAllRegistrationsInfos(base::Bind(
&ServiceWorkerContextCore::DidGetAllRegistrationsForUnregisterForOrigin,
- AsWeakPtr(),
- callback,
- origin));
+ AsWeakPtr(), callback, origin));
}
void ServiceWorkerContextCore::DidGetAllRegistrationsForUnregisterForOrigin(

Powered by Google App Engine
This is Rietveld 408576698