| Index: content/browser/renderer_host/render_process_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
|
| index 9ab8dbe72108a2f3f48e2e5919a16c9ba6a7fe24..7abfcf9a5858bbc62f45e27e712e0614cb274c96 100644
|
| --- a/content/browser/renderer_host/render_process_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_process_host_impl.cc
|
| @@ -95,7 +95,7 @@
|
| #include "content/browser/renderer_host/text_input_client_message_filter.h"
|
| #include "content/browser/renderer_host/websocket_dispatcher_host.h"
|
| #include "content/browser/resolve_proxy_msg_helper.h"
|
| -#include "content/browser/service_worker/service_worker_context.h"
|
| +#include "content/browser/service_worker/service_worker_context_wrapper.h"
|
| #include "content/browser/service_worker/service_worker_dispatcher_host.h"
|
| #include "content/browser/speech/input_tag_speech_dispatcher_host.h"
|
| #include "content/browser/speech/speech_recognition_dispatcher_host.h"
|
| @@ -613,8 +613,13 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
| AddFilter(new IndexedDBDispatcherHost(
|
| GetID(),
|
| storage_partition_impl_->GetIndexedDBContext()));
|
| - AddFilter(new ServiceWorkerDispatcherHost(
|
| - GetID(), storage_partition_impl_->GetServiceWorkerContext()));
|
| +
|
| + scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter =
|
| + new ServiceWorkerDispatcherHost(GetID());
|
| + service_worker_filter->Init(
|
| + storage_partition_impl_->GetServiceWorkerContext());
|
| + AddFilter(service_worker_filter);
|
| +
|
| if (IsGuest()) {
|
| if (!g_browser_plugin_geolocation_context.Get().get()) {
|
| g_browser_plugin_geolocation_context.Get() =
|
|
|