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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 2896583005: Reland: Refactor DeviceMotionEventPump to use //device/generic_sensor instead of //device/sensors (Closed)
Patch Set: updated test code Created 3 years, 7 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/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index a54028632b2d5b37579b72b193a24f47ea242d67..52c941b3377293a980e98b959243ef72a44a9702 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -172,8 +172,8 @@ namespace content {
namespace {
bool g_sandbox_enabled = true;
-base::LazyInstance<device::MotionData>::Leaky g_test_device_motion_data =
- LAZY_INSTANCE_INITIALIZER;
+base::LazyInstance<blink::WebDeviceMotionData>::Leaky
+ g_test_device_motion_data = LAZY_INSTANCE_INITIALIZER;
base::LazyInstance<device::OrientationData>::Leaky
g_test_device_orientation_data = LAZY_INSTANCE_INITIALIZER;
@@ -1122,7 +1122,7 @@ void RendererBlinkPlatformImpl::RecordRapporURL(const char* metric,
// static
void RendererBlinkPlatformImpl::SetMockDeviceMotionDataForTesting(
- const device::MotionData& data) {
+ const blink::WebDeviceMotionData& data) {
g_test_device_motion_data.Get() = data;
}

Powered by Google App Engine
This is Rietveld 408576698