Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 641703002: Rewrite the Android implementation of BatteryMonitor directly in Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@battery-status-api-to-mojo
Patch Set: Fix DEPS. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 57bb58baf5fa805548d4d3e507a7063b1233b5e1..6ca544333113936286dbbaa30412ef5646fedd58 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -157,6 +157,7 @@
#if defined(OS_ANDROID)
#include "content/browser/android/child_process_launcher_android.h"
#include "content/browser/media/android/browser_demuxer_android.h"
+#include "content/browser/mojo/service_registrar_android.h"
#include "content/browser/screen_orientation/screen_orientation_message_filter_android.h"
#endif
@@ -898,6 +899,11 @@ void RenderProcessHostImpl::RegisterMojoServices() {
base::Bind(&PermissionServiceContext::CreateService,
base::Unretained(permission_service_context_.get())));
+#if defined(OS_ANDROID)
+ ServiceRegistrarAndroid::RegisterProcessHostServices(
+ mojo_application_host_->service_registry_android());
+#endif
+
GetContentClient()->browser()->OverrideRenderProcessMojoServices(
mojo_application_host_->service_registry());
}

Powered by Google App Engine
This is Rietveld 408576698