| 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 799bab3cbd613f850b6857153d4cf67b2f76a355..bdcca45e2fce8a42ad50aedce512dcade0ae599c 100644
|
| --- a/content/browser/renderer_host/render_process_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_process_host_impl.cc
|
| @@ -196,6 +196,7 @@
|
| #include "content/browser/media/android/browser_demuxer_android.h"
|
| #include "content/browser/mojo/interface_registrar_android.h"
|
| #include "content/browser/screen_orientation/screen_orientation_message_filter_android.h"
|
| +#include "content/public/browser/android/java_interfaces.h"
|
| #include "ipc/ipc_sync_channel.h"
|
| #include "media/audio/android/audio_manager_android.h"
|
| #endif
|
| @@ -1202,7 +1203,11 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
|
| base::Bind(&RenderProcessHostImpl::OnRouteProviderRequest,
|
| base::Unretained(this)));
|
|
|
| -#if !defined(OS_ANDROID)
|
| +#if defined(OS_ANDROID)
|
| + AddUIThreadInterface(registry.get(),
|
| + GetGlobalJavaInterfaces()
|
| + ->CreateInterfaceFactory<device::BatteryMonitor>());
|
| +#else
|
| AddUIThreadInterface(
|
| registry.get(), base::Bind(&device::BatteryMonitorImpl::Create));
|
| #endif
|
|
|