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

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

Issue 1380023002: Revert of Don't choose a background process when choosing a process for starting a Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/renderer_host/render_process_host_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_process_manager.cc
diff --git a/content/browser/service_worker/service_worker_process_manager.cc b/content/browser/service_worker/service_worker_process_manager.cc
index bc0de35810a01015f9541e4aafff0334e703f222..a310bcc1770b5ca7ec279ad496b594db7ecaba50 100644
--- a/content/browser/service_worker/service_worker_process_manager.cc
+++ b/content/browser/service_worker/service_worker_process_manager.cc
@@ -27,11 +27,6 @@
static bool IncrementWorkerRefCountByPid(int process_id) {
RenderProcessHost* rph = RenderProcessHost::FromID(process_id);
if (!rph || rph->FastShutdownStarted())
- return false;
- // TODO(horo): This is a quick fix for crbug.com/531345. We need to revisit
- // the behavior of ServiceWorker and the timer suspension of background
- // processes which was intoruced by crrev.com/1133143003.
- if (static_cast<RenderProcessHostImpl*>(rph)->backgrounded())
return false;
static_cast<RenderProcessHostImpl*>(rph)->IncrementWorkerRefCount();
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698