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

Unified Diff: content/renderer/service_worker/service_worker_script_context.cc

Issue 1162243003: BackgroundSync sync events need to be ExtendableEvents, content side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoid race condition in sync event dispatch Created 5 years, 7 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/renderer/service_worker/service_worker_script_context.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/service_worker/service_worker_script_context.cc
diff --git a/content/renderer/service_worker/service_worker_script_context.cc b/content/renderer/service_worker/service_worker_script_context.cc
index 1930f93c0dbebabb0fb4428ee8301980ea9ff401..d314ce78890d7a01486e9464516d1a30445ec03a 100644
--- a/content/renderer/service_worker/service_worker_script_context.cc
+++ b/content/renderer/service_worker/service_worker_script_context.cc
@@ -218,9 +218,11 @@ void ServiceWorkerScriptContext::DidHandlePushEvent(
GetRoutingID(), request_id, result));
}
-void ServiceWorkerScriptContext::DidHandleSyncEvent(int request_id) {
- Send(new ServiceWorkerHostMsg_SyncEventFinished(
- GetRoutingID(), request_id));
+void ServiceWorkerScriptContext::DidHandleSyncEvent(
+ int request_id,
+ blink::WebServiceWorkerEventResult result) {
+ Send(new ServiceWorkerHostMsg_SyncEventFinished(GetRoutingID(), request_id,
+ result));
}
void ServiceWorkerScriptContext::DidHandleCrossOriginConnectEvent(
« no previous file with comments | « content/renderer/service_worker/service_worker_script_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698