Index: Source/modules/device_orientation/DeviceOrientationController.cpp |
diff --git a/Source/modules/device_orientation/DeviceOrientationController.cpp b/Source/modules/device_orientation/DeviceOrientationController.cpp |
index a08d7fdd2f7f7117ed4f494a16c0552c7c523f15..8336ed7463be45e7726be179c7621b6f53775657 100644 |
--- a/Source/modules/device_orientation/DeviceOrientationController.cpp |
+++ b/Source/modules/device_orientation/DeviceOrientationController.cpp |
@@ -13,6 +13,7 @@ |
#include "modules/device_orientation/DeviceOrientationDispatcher.h" |
#include "modules/device_orientation/DeviceOrientationEvent.h" |
#include "platform/weborigin/SecurityOrigin.h" |
+#include "public/platform/Platform.h" |
namespace blink { |
@@ -66,6 +67,9 @@ void DeviceOrientationController::didAddEventListener(LocalDOMWindow* window, co |
} |
} |
+ if (!m_hasEventListener) |
+ Platform::current()->recordRapporURL("DeviceSensors.DeviceOrientation", WebURL(document().url())); |
+ |
DeviceSingleWindowEventController::didAddEventListener(window, eventType); |
} |