| 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 9056e76f03596ef69ab275846ef148da8d92c87c..b7fbe590ba6c1bc747066ef2c9f6c6d26fe3bfdd 100644
|
| --- a/content/browser/service_worker/service_worker_process_manager.cc
|
| +++ b/content/browser/service_worker/service_worker_process_manager.cc
|
| @@ -11,6 +11,7 @@
|
|
|
| #include "content/browser/renderer_host/render_process_host_impl.h"
|
| #include "content/browser/service_worker/service_worker_context_wrapper.h"
|
| +#include "content/browser/site_instance_impl.h"
|
| #include "content/common/service_worker/embedded_worker_settings.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/content_browser_client.h"
|
| @@ -216,8 +217,13 @@ void ServiceWorkerProcessManager::AllocateWorkerProcess(
|
| }
|
|
|
| // No existing processes available; start a new one.
|
| - scoped_refptr<SiteInstance> site_instance =
|
| - SiteInstance::CreateForURL(browser_context_, script_url);
|
| + // TODO(clamy): Update the process reuse mechanism above following the
|
| + // implementation of
|
| + // SiteInstanceImpl::ProcessReusePolicy::REUSE_PENDING_OR_COMMITTED_SITE.
|
| + scoped_refptr<SiteInstanceImpl> site_instance =
|
| + SiteInstanceImpl::CreateForURL(browser_context_, script_url);
|
| + site_instance->set_process_reuse_policy(
|
| + SiteInstanceImpl::ProcessReusePolicy::REUSE_PENDING_OR_COMMITTED_SITE);
|
| RenderProcessHost* rph = site_instance->GetProcess();
|
|
|
| // This Init() call posts a task to the IO thread that adds the RPH's
|
|
|