| 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 079f6e9dda954727f32c8ccdb2bd3beaebe05540..8084884ad4e2e23da6186f87583f1a2c459e824b 100644
|
| --- a/content/browser/renderer_host/render_process_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_process_host_impl.cc
|
| @@ -66,6 +66,8 @@
|
| #include "content/browser/mime_registry_message_filter.h"
|
| #include "content/browser/mojo/mojo_application_host.h"
|
| #include "content/browser/notifications/notification_message_filter.h"
|
| +#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/quota_dispatcher_host.h"
|
| @@ -876,6 +878,12 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
| void RenderProcessHostImpl::RegisterMojoServices() {
|
| mojo_application_host_->service_registry()->AddService(
|
| base::Bind(&device::BatteryMonitorImpl::Create));
|
| +
|
| + if (!permission_service_context_)
|
| + permission_service_context_.reset(new PermissionServiceContext(nullptr));
|
| + mojo_application_host_->service_registry()->AddService(
|
| + base::Bind(&PermissionServiceContext::CreateService,
|
| + base::Unretained(permission_service_context_.get())));
|
| }
|
|
|
| int RenderProcessHostImpl::GetNextRoutingID() {
|
|
|