| 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..0b314c73cf6bb08758ec2f00f661b39bc776bc3f 100644
|
| --- a/content/browser/renderer_host/render_process_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_process_host_impl.cc
|
| @@ -40,7 +40,6 @@
|
| #include "cc/base/switches.h"
|
| #include "content/browser/appcache/appcache_dispatcher_host.h"
|
| #include "content/browser/appcache/chrome_appcache_service.h"
|
| -#include "content/browser/battery_status/battery_status_message_filter.h"
|
| #include "content/browser/browser_child_process_host_impl.h"
|
| #include "content/browser/browser_main.h"
|
| #include "content/browser/browser_main_loop.h"
|
| @@ -132,6 +131,7 @@
|
| #include "content/public/common/result_codes.h"
|
| #include "content/public/common/sandboxed_process_launcher_delegate.h"
|
| #include "content/public/common/url_constants.h"
|
| +#include "device/battery/battery_monitor_impl.h"
|
| #include "gpu/command_buffer/client/gpu_switches.h"
|
| #include "gpu/command_buffer/service/gpu_switches.h"
|
| #include "ipc/ipc_channel.h"
|
| @@ -586,6 +586,7 @@ bool RenderProcessHostImpl::Init() {
|
| GetContentClient()->browser()->RenderProcessWillLaunch(this);
|
|
|
| CreateMessageFilters();
|
| + RegisterMojoServices();
|
|
|
| if (run_renderer_in_process()) {
|
| DCHECK(g_renderer_main_thread_factory);
|
| @@ -865,7 +866,6 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
| AddFilter(new VibrationMessageFilter());
|
| AddFilter(new PushMessagingMessageFilter(
|
| GetID(), storage_partition_impl_->GetServiceWorkerContext()));
|
| - AddFilter(new BatteryStatusMessageFilter());
|
| #if defined(OS_ANDROID)
|
| AddFilter(new ScreenOrientationMessageFilterAndroid());
|
| #endif
|
| @@ -873,11 +873,15 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
| storage_partition_impl_->GetGeofencingManager()));
|
| }
|
|
|
| +void RenderProcessHostImpl::RegisterMojoServices() {
|
| + mojo_application_host_->service_registry()->AddService(
|
| + base::Bind(&device::BatteryMonitorImpl::Create));
|
| +}
|
| +
|
| int RenderProcessHostImpl::GetNextRoutingID() {
|
| return widget_helper_->GetNextRoutingID();
|
| }
|
|
|
| -
|
| void RenderProcessHostImpl::ResumeDeferredNavigation(
|
| const GlobalRequestID& request_id) {
|
| widget_helper_->ResumeDeferredNavigation(request_id);
|
|
|