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

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

Issue 2692993006: Port device_sensors to be hosted in Device Service (Closed)
Patch Set: code rebase Created 3 years, 9 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/public/app/mojo/content_browser_manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f115372768900072799bd58e519047546a04543a..b008fd747a6c9f48a80b82a3a540979bb7bcb276 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -168,7 +168,6 @@
#include "content/public/common/url_constants.h"
#include "device/battery/battery_monitor_impl.h"
#include "device/gamepad/gamepad_monitor.h"
-#include "device/sensors/device_sensor_host.h"
#include "gpu/GLES2/gl2extchromium.h"
#include "gpu/command_buffer/client/gpu_switches.h"
#include "gpu/command_buffer/common/gles2_cmd_utils.h"
@@ -1296,28 +1295,6 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
file_task_runner);
#endif
-#if defined(OS_ANDROID)
- // On Android the device sensors implementations need to run on the UI thread
- // to communicate to Java.
- AddUIThreadInterface(registry.get(),
- base::Bind(&device::DeviceLightHost::Create));
- AddUIThreadInterface(registry.get(),
- base::Bind(&device::DeviceMotionHost::Create));
- AddUIThreadInterface(registry.get(),
- base::Bind(&device::DeviceOrientationHost::Create));
- AddUIThreadInterface(
- registry.get(),
- base::Bind(&device::DeviceOrientationAbsoluteHost::Create));
-#else
- // On platforms other than Android the device sensors implementations run on
- // the IO thread.
- registry->AddInterface(base::Bind(&device::DeviceLightHost::Create));
- registry->AddInterface(base::Bind(&device::DeviceMotionHost::Create));
- registry->AddInterface(base::Bind(&device::DeviceOrientationHost::Create));
- registry->AddInterface(
- base::Bind(&device::DeviceOrientationAbsoluteHost::Create));
-#endif // defined(OS_ANDROID)
-
registry->AddInterface(base::Bind(&device::GamepadMonitor::Create));
registry->AddInterface(
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/public/app/mojo/content_browser_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698