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

Unified Diff: content/browser/service_worker/service_worker_context_wrapper.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_wrapper.cc
diff --git a/content/browser/service_worker/service_worker_context_wrapper.cc b/content/browser/service_worker/service_worker_context_wrapper.cc
index 264c9ce5a91c00f16995077314e9119b1e0d3d24..962da53ee5c8b1c63cf973c9738612e2e4cd81ab 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.cc
+++ b/content/browser/service_worker/service_worker_context_wrapper.cc
@@ -339,10 +339,9 @@ void ServiceWorkerContextWrapper::GetAllOriginsInfo(
base::Bind(callback, std::vector<ServiceWorkerUsageInfo>()));
return;
}
- context()->storage()->GetAllRegistrations(base::Bind(
+ context()->storage()->GetAllRegistrationsInfos(base::Bind(
&ServiceWorkerContextWrapper::DidGetAllRegistrationsForGetAllOrigins,
- this,
- callback));
+ this, callback));
}
void ServiceWorkerContextWrapper::DidGetAllRegistrationsForGetAllOrigins(
@@ -526,7 +525,7 @@ void ServiceWorkerContextWrapper::GetAllRegistrations(
RunSoon(base::Bind(callback, std::vector<ServiceWorkerRegistrationInfo>()));
return;
}
- context_core_->storage()->GetAllRegistrations(callback);
+ context_core_->storage()->GetAllRegistrationsInfos(callback);
}
void ServiceWorkerContextWrapper::GetRegistrationUserData(

Powered by Google App Engine
This is Rietveld 408576698