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 84dcc3b5635758b26de0cf77d4c427406d7e20f4..0644b8bffaca0d495a7a8416026e416ebf7d56b7 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -97,7 +97,7 @@ |
#include "content/browser/permissions/permission_service_context.h" |
#include "content/browser/permissions/permission_service_impl.h" |
#include "content/browser/profiler_message_filter.h" |
-#include "content/browser/push_messaging/push_messaging_message_filter.h" |
+#include "content/browser/push_messaging/push_messaging_manager.h" |
#include "content/browser/quota_dispatcher_host.h" |
#include "content/browser/renderer_host/clipboard_message_filter.h" |
#include "content/browser/renderer_host/database_message_filter.h" |
@@ -729,6 +729,9 @@ RenderProcessHostImpl::RenderProcessHostImpl( |
storage_partition_impl_->GetPath())); |
} |
+ push_messaging_.reset(new PushMessagingManager( |
+ GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
+ |
#if defined(OS_MACOSX) |
if (BootstrapSandboxManager::ShouldEnable()) |
AddObserver(BootstrapSandboxManager::GetInstance()); |
@@ -1190,8 +1193,6 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
AddFilter(new HistogramMessageFilter()); |
AddFilter(new MemoryMessageFilter(this)); |
- AddFilter(new PushMessagingMessageFilter( |
- GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
#if defined(OS_ANDROID) |
AddFilter(new ScreenOrientationListenerAndroid()); |
synchronous_compositor_filter_ = |
@@ -1314,6 +1315,9 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() { |
registry->AddInterface(base::Bind(&device::GamepadMonitor::Create)); |
+ registry->AddInterface(base::Bind(&PushMessagingManager::BindRequest, |
+ base::Unretained(push_messaging_.get()))); |
+ |
registry->AddInterface(base::Bind(&RenderProcessHostImpl::CreateMusGpuRequest, |
base::Unretained(this))); |