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 2b646222aa4357b80f7b39b5a698fbe1c3aeac63..a8eea06e9b9dc29792494fd77fdff205743d3ae3 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -71,7 +71,7 @@ |
#include "content/browser/message_port_message_filter.h" |
#include "content/browser/mime_registry_message_filter.h" |
#include "content/browser/mojo/mojo_application_host.h" |
-#include "content/browser/notification_message_filter.h" |
+#include "content/browser/notifications/notification_message_filter.h" |
#include "content/browser/profiler_message_filter.h" |
#include "content/browser/push_messaging_message_filter.h" |
#include "content/browser/quota_dispatcher_host.h" |
@@ -848,9 +848,13 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
GetID(), |
storage_partition_impl_->GetQuotaManager(), |
GetContentClient()->browser()->CreateQuotaPermissionContext())); |
- AddFilter(new NotificationMessageFilter( |
+ |
+ notification_message_filter_ = new NotificationMessageFilter( |
GetID(), |
- resource_context)); |
+ resource_context, |
+ browser_context); |
+ AddFilter(notification_message_filter_.get()); |
+ |
AddFilter(new GamepadBrowserMessageFilter()); |
AddFilter(new DeviceLightMessageFilter()); |
AddFilter(new DeviceMotionMessageFilter()); |