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_watcher.cc

Issue 1079923002: ServiceWorker: Stop exposing ServiceWorkerContextCore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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..1cf5c08efdf52e8691563ca470702d0867b1f1a5 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,10 @@ 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);
}
falken 2015/04/15 08:03:20 nit: braces not needed
nhiroki 2015/04/15 23:38:16 Done.
- 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