Index: content/browser/service_worker/service_worker_context_watcher.cc |
diff --git a/content/browser/service_worker/service_worker_context_watcher.cc b/content/browser/service_worker/service_worker_context_watcher.cc |
index 5d1a1a8ff813dcd845e9299ebe358a64a79a2b90..7c69ea222f4fb70ebcfeceae35e4ad99d4651e7d 100644 |
--- a/content/browser/service_worker/service_worker_context_watcher.cc |
+++ b/content/browser/service_worker/service_worker_context_watcher.cc |
@@ -54,7 +54,7 @@ void ServiceWorkerContextWatcher::Stop() { |
void ServiceWorkerContextWatcher::GetStoredRegistrationsOnIOThread() { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
- context_->context()->storage()->GetAllRegistrations(base::Bind( |
+ context_->GetAllRegistrations(base::Bind( |
&ServiceWorkerContextWatcher::OnStoredRegistrationsOnIOThread, this)); |
} |
@@ -67,11 +67,9 @@ void ServiceWorkerContextWatcher::OnStoredRegistrationsOnIOThread( |
registration_info_map; |
for (const auto& registration : stored_registrations) |
StoreRegistrationInfo(registration, ®istration_info_map); |
- for (const auto& registration : |
- context_->context()->GetAllLiveRegistrationInfo()) { |
+ for (const auto& registration : context_->GetAllLiveRegistrationInfo()) |
StoreRegistrationInfo(registration, ®istration_info_map); |
- } |
- for (const auto& version : context_->context()->GetAllLiveVersionInfo()) |
+ for (const auto& version : context_->GetAllLiveVersionInfo()) |
StoreVersionInfo(version); |
std::vector<ServiceWorkerRegistrationInfo> registrations; |