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 5e96c377b69ea07b137319348aed0f16b59670f4..fdc5ec12ab659d872618bbccdfbd6107dd210d88 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -96,7 +96,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" |
@@ -728,6 +728,9 @@ RenderProcessHostImpl::RenderProcessHostImpl( |
storage_partition_impl_->GetPath())); |
} |
+ push_messaging_manager_.reset(new PushMessagingManager( |
+ GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
+ |
#if defined(OS_MACOSX) |
if (BootstrapSandboxManager::ShouldEnable()) |
AddObserver(BootstrapSandboxManager::GetInstance()); |
@@ -1184,8 +1187,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_ = |
@@ -1308,6 +1309,10 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() { |
registry->AddInterface(base::Bind(&device::GamepadMonitor::Create)); |
+ registry->AddInterface( |
+ base::Bind(&PushMessagingManager::BindRequest, |
+ base::Unretained(push_messaging_manager_.get()))); |
+ |
registry->AddInterface(base::Bind(&RenderProcessHostImpl::CreateMusGpuRequest, |
base::Unretained(this))); |