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

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

Issue 2646093002: Move //content/browser/device_sensor/ into device/sensors (Closed)
Patch Set: gn format & code rebase 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
« no previous file with comments | « content/browser/device_sensors/sensor_manager_chromeos_unittest.cc ('k') | content/common/BUILD.gn » ('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 7a2b7c2002b5cd5eea8765cc22a416b839952957..1b0b57a14b093b054f5c8c4595439df6d3a3ebaa 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -65,7 +65,6 @@
#include "content/browser/cache_storage/cache_storage_context_impl.h"
#include "content/browser/cache_storage/cache_storage_dispatcher_host.h"
#include "content/browser/child_process_security_policy_impl.h"
-#include "content/browser/device_sensors/device_sensor_host.h"
#include "content/browser/dom_storage/dom_storage_context_wrapper.h"
#include "content/browser/dom_storage/dom_storage_message_filter.h"
#include "content/browser/fileapi/fileapi_message_filter.h"
@@ -166,6 +165,7 @@
#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"
@@ -1281,19 +1281,23 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
#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(&DeviceLightHost::Create));
- AddUIThreadInterface(registry.get(), base::Bind(&DeviceMotionHost::Create));
AddUIThreadInterface(registry.get(),
- base::Bind(&DeviceOrientationHost::Create));
+ base::Bind(&device::DeviceLightHost::Create));
AddUIThreadInterface(registry.get(),
- base::Bind(&DeviceOrientationAbsoluteHost::Create));
+ 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(&DeviceLightHost::Create));
- registry->AddInterface(base::Bind(&DeviceMotionHost::Create));
- registry->AddInterface(base::Bind(&DeviceOrientationHost::Create));
- registry->AddInterface(base::Bind(&DeviceOrientationAbsoluteHost::Create));
+ 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));
« no previous file with comments | « content/browser/device_sensors/sensor_manager_chromeos_unittest.cc ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698