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

Unified Diff: content/browser/service_worker/embedded_worker_test_helper.cc

Issue 2002883002: ServiceWorker: Store the existence of fetch event handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix my mistake Created 4 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
Index: content/browser/service_worker/embedded_worker_test_helper.cc
diff --git a/content/browser/service_worker/embedded_worker_test_helper.cc b/content/browser/service_worker/embedded_worker_test_helper.cc
index adb88e7bab5fe2410539c75605843fa428d6caef..4d69acec4d8847e7bb6f3953fa0cb27e94dcd54f 100644
--- a/content/browser/service_worker/embedded_worker_test_helper.cc
+++ b/content/browser/service_worker/embedded_worker_test_helper.cc
@@ -223,10 +223,9 @@ void EmbeddedWorkerTestHelper::OnInstallEvent(int embedded_worker_id,
// The installing worker may have been doomed and terminated.
if (!registry()->GetWorker(embedded_worker_id))
return;
- SimulateSend(
- new ServiceWorkerHostMsg_InstallEventFinished(
- embedded_worker_id, request_id,
- blink::WebServiceWorkerEventResultCompleted));
+ SimulateSend(new ServiceWorkerHostMsg_InstallEventFinished(
+ embedded_worker_id, request_id,
+ blink::WebServiceWorkerEventResultCompleted, true));
}
void EmbeddedWorkerTestHelper::OnFetchEvent(

Powered by Google App Engine
This is Rietveld 408576698