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

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

Issue 325173002: ServiceWorker: Confirm the liveness of the associated context before handling message (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix more Created 6 years, 6 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_provider_host.cc
diff --git a/content/browser/service_worker/service_worker_provider_host.cc b/content/browser/service_worker/service_worker_provider_host.cc
index a41085c3da6016a2387bc7bdedb4931dacaec7ed..eeba3736d036920663b8cf3195177283bad7056b 100644
--- a/content/browser/service_worker/service_worker_provider_host.cc
+++ b/content/browser/service_worker/service_worker_provider_host.cc
@@ -173,4 +173,8 @@ ServiceWorkerObjectInfo ServiceWorkerProviderHost::CreateHandleAndPass(
return info;
}
+bool ServiceWorkerProviderHost::IsContextAlive() {
+ return context_ != NULL;
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698