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

Unified Diff: content/public/browser/push_messaging_service.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 | « content/browser/service_worker/service_worker_internals_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/push_messaging_service.cc
diff --git a/content/public/browser/push_messaging_service.cc b/content/public/browser/push_messaging_service.cc
index 061af7ad6a4f6846cd10a42f1021e602e9438401..27335eb9adfbab9ca60bce7e78f50ae897fd6bb2 100644
--- a/content/public/browser/push_messaging_service.cc
+++ b/content/public/browser/push_messaging_service.cc
@@ -50,7 +50,7 @@ void GetUserDataOnIO(
const std::string& key,
const PushMessagingService::StringCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- service_worker_context_wrapper->context()->storage()->GetUserData(
+ service_worker_context_wrapper->GetRegistrationUserData(
service_worker_registration_id, key,
base::Bind(&CallStringCallbackFromIO, callback));
}
@@ -61,7 +61,7 @@ void SetNotificationsShownOnIO(
const std::string& data,
const PushMessagingService::ResultCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- service_worker_context_wrapper->context()->storage()->StoreUserData(
+ service_worker_context_wrapper->StoreRegistrationUserData(
service_worker_registration_id, origin,
kNotificationsShownServiceWorkerKey, data,
base::Bind(&CallResultCallbackFromIO, callback));
@@ -73,7 +73,7 @@ void ClearPushRegistrationIDOnIO(
const base::Closure& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- service_worker_context->context()->storage()->ClearUserData(
+ service_worker_context->ClearRegistrationUserData(
service_worker_registration_id,
kPushRegistrationIdServiceWorkerKey,
base::Bind(&CallClosureFromIO, callback));
« no previous file with comments | « content/browser/service_worker/service_worker_internals_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698