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

Unified Diff: content/browser/geofencing/geofencing_manager.cc

Issue 1079923002: ServiceWorker: Stop exposing ServiceWorkerContextCore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 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/geofencing/geofencing_manager.cc
diff --git a/content/browser/geofencing/geofencing_manager.cc b/content/browser/geofencing/geofencing_manager.cc
index 96f55ecd3d0ae70fa75bdc430b3df8b9bccbf005..d44605771f812fb139982635b4f13c3897724a5f 100644
--- a/content/browser/geofencing/geofencing_manager.cc
+++ b/content/browser/geofencing/geofencing_manager.cc
@@ -110,7 +110,7 @@ void GeofencingManager::RegisterRegion(
// Look up service worker.
ServiceWorkerRegistration* service_worker_registration =
- service_worker_context_->context()->GetLiveRegistration(
+ service_worker_context_->GetLiveRegistration(
service_worker_registration_id);
if (!service_worker_registration) {
callback.Run(GEOFENCING_STATUS_OPERATION_FAILED_NO_SERVICE_WORKER);
@@ -146,7 +146,7 @@ void GeofencingManager::UnregisterRegion(int64 service_worker_registration_id,
// Look up service worker.
ServiceWorkerRegistration* service_worker_registration =
- service_worker_context_->context()->GetLiveRegistration(
+ service_worker_context_->GetLiveRegistration(
service_worker_registration_id);
if (!service_worker_registration) {
callback.Run(GEOFENCING_STATUS_OPERATION_FAILED_NO_SERVICE_WORKER);
@@ -185,7 +185,7 @@ GeofencingStatus GeofencingManager::GetRegisteredRegions(
// Look up service worker.
ServiceWorkerRegistration* service_worker_registration =
- service_worker_context_->context()->GetLiveRegistration(
+ service_worker_context_->GetLiveRegistration(
service_worker_registration_id);
if (!service_worker_registration) {
return GEOFENCING_STATUS_OPERATION_FAILED_NO_SERVICE_WORKER;
@@ -358,7 +358,7 @@ void GeofencingManager::DispatchGeofencingEvent(
return;
}
- service_worker_context_->context()->storage()->FindRegistrationForId(
+ service_worker_context_->FindRegistrationForId(
registration->service_worker_registration_id,
registration->service_worker_origin,
base::Bind(&GeofencingManager::DeliverGeofencingEvent,

Powered by Google App Engine
This is Rietveld 408576698