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

Unified Diff: content/browser/service_worker/service_worker_context_watcher.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/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, &registration_info_map);
- for (const auto& registration :
- context_->context()->GetAllLiveRegistrationInfo()) {
+ for (const auto& registration : context_->GetAllLiveRegistrationInfo())
StoreRegistrationInfo(registration, &registration_info_map);
- }
- for (const auto& version : context_->context()->GetAllLiveVersionInfo())
+ for (const auto& version : context_->GetAllLiveVersionInfo())
StoreVersionInfo(version);
std::vector<ServiceWorkerRegistrationInfo> registrations;

Powered by Google App Engine
This is Rietveld 408576698