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

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

Issue 2574663002: TabManager checks if ServiceWorker exists on the suspending process (Closed)
Patch Set: Created 4 years 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_registry.cc
diff --git a/content/browser/service_worker/embedded_worker_registry.cc b/content/browser/service_worker/embedded_worker_registry.cc
index fff48b95cdc5cafd4edb680a5d87403481671bfa..7e133391ecc56c160b66b00db16cdb5a9959aaa0 100644
--- a/content/browser/service_worker/embedded_worker_registry.cc
+++ b/content/browser/service_worker/embedded_worker_registry.cc
@@ -179,6 +179,10 @@ void EmbeddedWorkerRegistry::OnReportConsoleMessage(
line_number, source_url);
}
+bool EmbeddedWorkerRegistry::IsWorkerExists(int process_id) {
+ return base::ContainsKey(worker_process_map_, process_id);
+}
+
void EmbeddedWorkerRegistry::AddChildProcessSender(
int process_id,
IPC::Sender* sender,

Powered by Google App Engine
This is Rietveld 408576698