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

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: Make GetRegistrationsForOrigin() handle nullptr for resource param. 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 8df6f4297a8cf06b966b6ef26caca543ecf9b0a0..64232dbc1442a243a0ab59e714eb19e6f83446cd 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.cc
+++ b/content/browser/service_worker/service_worker_context_wrapper.cc
@@ -336,10 +336,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(
@@ -522,7 +521,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