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

Unified Diff: content/browser/background_sync/background_sync_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
« no previous file with comments | « no previous file | content/browser/devtools/protocol/service_worker_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/background_sync/background_sync_manager.cc
diff --git a/content/browser/background_sync/background_sync_manager.cc b/content/browser/background_sync/background_sync_manager.cc
index 3a7a958e92549ab4926d1dfae20380ab31d5ac5e..a23792f161076cfa4f7ef3f3039c9a3688408ba7 100644
--- a/content/browser/background_sync/background_sync_manager.cc
+++ b/content/browser/background_sync/background_sync_manager.cc
@@ -314,7 +314,7 @@ void BackgroundSyncManager::DisableAndClearDidGetRegistrations(
base::BarrierClosure(user_data.size(), base::Bind(callback));
for (const auto& sw_id_and_regs : user_data) {
- service_worker_context_->context()->storage()->ClearUserData(
+ service_worker_context_->ClearRegistrationUserData(
sw_id_and_regs.first, kBackgroundSyncUserDataKey,
base::Bind(&BackgroundSyncManager::DisableAndClearManagerClearedOne,
weak_ptr_factory_.GetWeakPtr(), barrier_closure));
@@ -439,7 +439,7 @@ void BackgroundSyncManager::StoreDataInBackend(
const std::string& backend_key,
const std::string& data,
const ServiceWorkerStorage::StatusCallback& callback) {
- service_worker_context_->context()->storage()->StoreUserData(
+ service_worker_context_->StoreRegistrationUserData(
sw_registration_id, origin, backend_key, data, callback);
}
@@ -449,8 +449,8 @@ void BackgroundSyncManager::GetDataFromBackend(
callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- service_worker_context_->context()->storage()->GetUserDataForAllRegistrations(
- backend_key, callback);
+ service_worker_context_->GetUserDataForAllRegistrations(backend_key,
+ callback);
}
void BackgroundSyncManager::UnregisterImpl(
« no previous file with comments | « no previous file | content/browser/devtools/protocol/service_worker_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698