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

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

Issue 2643713002: Port BatteryMonitor into Device Service (Closed)
Patch Set: Self-review Created 3 years, 11 months 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 a2b53abb57ada0e3a15ebd86ee3c86eb3442f879..1687ed252d0c0a9c76488f65aa27b64b11543ffa 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -164,7 +164,6 @@
#include "content/public/common/sandboxed_process_launcher_delegate.h"
#include "content/public/common/service_names.mojom.h"
#include "content/public/common/url_constants.h"
-#include "device/battery/battery_monitor_impl.h"
#include "device/gamepad/gamepad_monitor.h"
#include "gpu/GLES2/gl2extchromium.h"
#include "gpu/command_buffer/client/gpu_switches.h"
@@ -1201,9 +1200,6 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
base::Bind(&IndexedDBDispatcherHost::AddBinding, indexed_db_factory_));
#if defined(OS_ANDROID)
- AddUIThreadInterface(registry.get(),
- GetGlobalJavaInterfaces()
- ->CreateInterfaceFactory<device::BatteryMonitor>());
AddUIThreadInterface(
registry.get(), GetGlobalJavaInterfaces()
->CreateInterfaceFactory<
@@ -1216,9 +1212,6 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
registry.get(),
GetGlobalJavaInterfaces()
->CreateInterfaceFactory<shape_detection::mojom::TextDetection>());
-#else
- AddUIThreadInterface(
- registry.get(), base::Bind(&device::BatteryMonitorImpl::Create));
#endif
AddUIThreadInterface(
registry.get(),

Powered by Google App Engine
This is Rietveld 408576698